3 ms·
Yes, your solution is in the original post, under the heading 'Python solutions': def squares(): return (x * x for x in range(10))
by rahimnathwani 8y ago
Yes, your solution is in the original post, under the heading 'Python solutions':
def squares():
return (x * x for x in range(10))