Created
February 6, 2018 08:48
-
-
Save koushikmln/0b41a27ad21448c86284e81f1bee5478 to your computer and use it in GitHub Desktop.
This file contains 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 sumOfInt(n,fun): | |
sum = 0 | |
for i in range(0,n+1): | |
sum = sum + fun(i) | |
return sum | |
sumOfInt(5,lambda x: x*x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment