Skip to content

Instantly share code, notes, and snippets.

@IanMcT
Created October 28, 2016 09:59
Show Gist options
  • Save IanMcT/ed48c47e7ba816e1566b8d862ee95b7c to your computer and use it in GitHub Desktop.
Save IanMcT/ed48c47e7ba816e1566b8d862ee95b7c to your computer and use it in GitHub Desktop.
Using lists for the first time.
#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