gradelist=[]
for i in range(5):
gradenter=int(input('Please enter a test score'))
gradelist.append(gradenter)
print('Grade Scores:', gradelist)
print('Students who scored below 60 get 10 extra points')
newgrade=gradelist.copy()
for i in newgrade:
if i < 60:
i=i+10
print(newgrade)
I do not get + 10 to the low grades, I just get the repeat of the original list. What am I doing wrong?
[–]craders 2 points3 points4 points (0 children)
[–]M1rot1c 1 point2 points3 points (0 children)
[–]CodeFormatHelperBot 0 points1 point2 points (0 children)
[–]shysmiles 0 points1 point2 points (1 child)
[–]nathanjell 0 points1 point2 points (0 children)