Demo entry 6785761

q

   

Submitted by anonymous on Mar 20, 2019 at 06:33
Language: Python 3. Code size: 85 Bytes.

def gen(num):
    for i in range(num):
        yield i**2
a=gen(5)
print(next(a))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).