Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __FibRec(a, i, n):
- for n in range(10):
- if a[i] == a[i-1] + a[i-2]:
- a.append(a[i-2], a[i-1], a[i])
- n+=1
- __FibRec(a[i+1])
- else:
- return ','.join(map(str,a[i-2, i+1]))
- a=[]
- n=0
- i=int(input())
Advertisement
Add Comment
Please, Sign In to add comment