1def input_scores():
2 scores = []
3 y = 1
4 for num in range(5):
5 score = int(input('Please enter your score for test', y, ': '))
6
7 while score < 0 or score > 100:
8 print('Error --- all test scores must be between 0 and 100 points')
9 score = int(input('Please try again: '))
10 scores.append(score)
11 y += 1
12 return scores
13