Created
April 22, 2019 12:30
-
-
Save EJSohn/656c1143657fe0a0d3fbe22a08099292 to your computer and use it in GitHub Desktop.
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 sum_lst(lst): | |
| tot = 0 | |
| for val in lst: | |
| tot += val | |
| return tot | |
| # or return sum(lst) ¯\_(ツ)_/¯ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment