Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Fibonacci(n):
- if n == 1 or n == 2:
- return '1'*n
- Ans = Fibonacci(n-1) + Fibonacci(n-2)
- return Ans
- print Fibonacci(input())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement