Skip to content

Instantly share code, notes, and snippets.

@slayerjain
Created September 12, 2015 11:34
Show Gist options
  • Save slayerjain/68fe4f05f28e0b453e11 to your computer and use it in GitHub Desktop.
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
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