Skip to content

Instantly share code, notes, and snippets.

@sibil
Created July 28, 2021 03:35
Show Gist options
  • Save sibil/4aae59ac2607c7f5860aae8224a79e09 to your computer and use it in GitHub Desktop.
Save sibil/4aae59ac2607c7f5860aae8224a79e09 to your computer and use it in GitHub Desktop.
#This is a list with three names.
numbers = [10, 20, 50]
result = 0
for number in numbers:
result = result + number
print("Result " + str(result) + " number:" + str(number))
print("Sum is:" + str(result))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment