Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.06 KB | None | 0 0
  1. def fib():
  2.     a=0
  3.     b=1
  4.     while True:
  5.         yield b
  6.         a,b=b,a+b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement