def fib(start=0): a, b = start, start+1 yield a while True: yield b a, b = b, a+b for i in fib(): if i > 100: break print(-i, end=" ")
To embed this project on your website, copy the following code and paste it into your website's HTML: