Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pow(a,b):
- tot = a
- if b == 0:
- return 1
- while b > 1:
- b -= 1
- tot *= a
- return tot
- def f(n):
- return pow(2,n) - 1
- for i in range(0,100):
- print f(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement