Guest User

Untitled

a guest
May 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def func(n):
  2. return func_1(0, 1, n)
  3.  
  4. def func_1(a, b, n):
  5. if( n > 1):
  6. return func_1(b, a+b, n-1)
  7. else:
  8. return b
Add Comment
Please, Sign In to add comment