Advertisement
tyler569

fibonacci

Jul 28th, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. def fib(iterations):
  2.     a, b = 0, 1
  3.     for _ in range(iterations):
  4.         a, b = b, a+b
  5.     return a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement