Created
April 1, 2019 09:49
-
-
Save MaxMonteil/69153dc3c30ab03c1668c44ee4461855 to your computer and use it in GitHub Desktop.
Sum all numbers in a range
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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