# Author: James Tam # Version: May 12, 2021 CONSISTENT_MESSAGE = "You selected the menu option to " selection = " " while selection not in ("a", "A", "r", "R", "m", "M", "q", "Q"): print("Menu options") print("(a)dd a new player to the game") print("(r)emove a player from the game") print("(m)odify player") print("(q)uit game") selection = input("Enter your selection: ") if selection not in ("a", "A", "r", "R", "m", "M", "q", "Q"): print("Please enter one of 'a', 'r', 'm' or 'q' ") print(CONSISTENT_MESSAGE, end = "") if ((selection == "a") or (selection == "A")): print("add a new player to the game.") elif ((selection == "r") or (selection == "R")): print("remove an existing player from the game.") elif ((selection == "m") or (selection == "M")): print("modify an existing player current player.") elif ((selection == "q") or (selection == "Q")): print("quit the game. Boo on you!")