daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top