Skip to content

Instantly share code, notes, and snippets.

@mkojoa
Created January 23, 2021 17:23
Show Gist options
  • Save mkojoa/e231cb6c3c3196986c7ca0ee9b39b9a1 to your computer and use it in GitHub Desktop.
Save mkojoa/e231cb6c3c3196986c7ca0ee9b39b9a1 to your computer and use it in GitHub Desktop.
Adding Grade score to a list in python
# score list
Score = []
#loop 5 times,
#just to accept input from user
#append the user input to score list
for i in range(5):
currentScore = int(input("Please enter score: "))
Score.append(currentScore)
print(i)
#print the final list
print(Score)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment