Skip to content

Instantly share code, notes, and snippets.

@MaxMonteil
Created April 1, 2019 09:49
Show Gist options
  • Save MaxMonteil/69153dc3c30ab03c1668c44ee4461855 to your computer and use it in GitHub Desktop.
Save MaxMonteil/69153dc3c30ab03c1668c44ee4461855 to your computer and use it in GitHub Desktop.
Sum all numbers in a range
def sumAll(r):
return sum([i for i in range(min(r), max(r) + 1)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment