Created
September 12, 2015 11:34
-
-
Save slayerjain/68fe4f05f28e0b453e11 to your computer and use it in GitHub Desktop.
The add on line 13 should work and set b as b +n in expint' scope
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 add(b,n): | |
"""it gives the sum """ | |
b = b+n | |
def expint(b,n): | |
"""It gives you the value of | |
b multiples n times """ | |
if(n==0): | |
b=1 | |
else: | |
b=b * b**(n-1) | |
print(b) | |
add(b,n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment