Last active
August 6, 2018 20:19
-
-
Save bee-san/b1b2a0bef21b20a81bac081efbae174c 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 summation(nums): | |
| return sum(nums) | |
| def action(func, numbers): | |
| return func(numbers) | |
| print(action(summation, [1, 2, 3])) | |
| # Output is 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment