Skip to content

Instantly share code, notes, and snippets.

@claraj
Created February 28, 2019 22:57
Show Gist options
  • Save claraj/1d9bab98f374728f427a44d14a425a7d to your computer and use it in GitHub Desktop.
Save claraj/1d9bab98f374728f427a44d14a425a7d to your computer and use it in GitHub Desktop.
small_num = int(input('enter the small number '))
large_num = int(input('enter the large number '))
total = 0
for number in range(small_num, large_num + 1):
print(number)
total = total + number
print(f'the total is {total}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment