Quick actions

cmd+k|ctrl+k

Navigation

Languages

febnosiesSeries

Snippet info

Language

Python

Visibility

public

Author

mdirfan19962

Created

2020-06-08T05:07:01Z

Updated

2020-06-08T05:49:26Z

r = 100

def fib_series():
    a, b = 0, 1
    
    while True:
        yield a
        a, b = b, a+b
        
fs = fib_series()

for i in range(r):
    print(next(fs))
INFO