I am trying to get a list of scores from user input. I want each prompt to include the current game number, which will increment from 1 to the total number of games. For example, if the user wants to input 3 games, the prompts should look like this:
score for game 1
score for game 2
score for game 3
Here's my code without the incrementing:
n = int(input("enter total number of games "))
games = []
for i in range(n):
x = int(input("score for game 1 "))
games.append(x)
How can I modify this so that the "1" increments from 1 to n?