Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active March 21, 2017 22:42
Show Gist options
  • Save nattybear/765c023c13b9f82ea11a911829626bc2 to your computer and use it in GitHub Desktop.
Save nattybear/765c023c13b9f82ea11a911829626bc2 to your computer and use it in GitHub Desktop.
count = 0
mylist = []
while count < 5:
num = int(input())
while num > 0:
mylist.append(num)
count = count + 1
break
print(sum(mylist))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment