This is what my code looks like now:
# Define get scores function
def get_scores():
num_scores = int(input('How many scores will you be entering: '))
my_list = []
for i in range(num_scores):
scores = int(input('Enter test score 1 (0 - 100): '))
my_list.append(scores)
# Define display menu function
def display_menu():
print('1. Score Metrics (min/max/avg')
print('2. Mine Scores (low/high scores')
print('3. Update Score')
print('4. Display Scores')
print('5. Quit')
# Define score metrics function
def score_metrics():
inp = input('Enter your choice: ') while inp == 1: print() print() print()
print('Number of scores:')
print()
print('High Score: ')
print('Low Score: ')
print('Average score: ')
# Call get scores function
get_scores()
print()
display_menu()
score_metrics()
I want to change the number of the test score in the get scores function so the output is:
Enter test score 1 (0 - 100):
Enter test score 2 (0 - 100):
Enter test score 3 (0 - 100):
I also want to print the number of scores in the score metrics function but I don't know how.