0
#installed games games = [ 'Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Rally'] #taking player's choice as a number input c
Can any one find how to give output
1 Réponse
+ 1
choice = int(input())
if 1 <= choice <= len(games):
selectedGame = games[choice - 1]
print(selectedGame)
else:
print("invalid choice")