Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. def fib(clen):
  4. if clen == 0:
  5. return 0
  6. a, b, aktualny = 1, 1, 2
  7.  
  8. while aktualny < clen:
  9. a, b, aktualny = b, a+b, aktualny+1
  10. return b
  11.  
  12. print(fib(10))
Add Comment
Please, Sign In to add comment