Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Infinite Fibonacci generator
#python 3.5.2 def fibo(): a = 1 b = 1 yield 1 yield 1 while True: b, a = b + a, b yield b n = 0 fib = fibo() while n < 30: print(next(fib)) n += 1
run
|
edit
|
history
|
help
0
PyRegChars
dictionary function
repeat string
list_copy_shallow_deep.py
set, tuple, and dict
JSON page
Hello wold Happy
Decimal, Octal, Hexadecimal and Binary Format
Happy new year!
Hello world