karolinagergert

Untitled

Jul 25th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def __FibRec(a, i, n):
  2. for n in range(10):
  3. if a[i] == a[i-1] + a[i-2]:
  4. a.append(a[i-2], a[i-1], a[i])
  5. n+=1
  6. __FibRec(a[i+1])
  7. else:
  8. return ','.join(map(str,a[i-2, i+1]))
  9. a=[]
  10. n=0
  11. i=int(input())
Advertisement
Add Comment
Please, Sign In to add comment