Created
October 28, 2016 09:59
-
-
Save IanMcT/ed48c47e7ba816e1566b8d862ee95b7c to your computer and use it in GitHub Desktop.
Using lists for the first time.
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
#I McTavish | |
#Oct 28, 2016 | |
#Demonstrate Lists | |
goals_game = [3,5,2,1,0] | |
totalgoals = 0; | |
for x in range(len(goals_game)): | |
totalgoals += goals_game[x] | |
print(totalgoals) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment