g1 = (c * 2 for c in 'ABC')
def gen(m):
for c in m:
yield c * 2
g2 = gen('ABC')
print(list(g1) == list(g2))
Post #2255
1.31K
Что выведет код?