Guest User

Untitled

a guest
Jun 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def fibonacci_generator():
  2. current, nxt = 0, 1
  3. while True:
  4. current, nxt = nxt, nxt + current
  5. yield current
  6.  
  7. fibonacci_generator()
Add Comment
Please, Sign In to add comment