Created
January 23, 2021 17:23
-
-
Save mkojoa/e231cb6c3c3196986c7ca0ee9b39b9a1 to your computer and use it in GitHub Desktop.
Adding Grade score to a list in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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