line = 'aaa bbb ccc d e f'
g1 = ''.join(x.upper() for x in line.split() if len(x) > 1)
def gen(line):
for x in line.split():
if len (x) > 1:
yield x.upper()
g2 = ''.join(gen(line))
print(g1 == g2)
Post #2261
1.45K
Что выведет код?