Иван Загребин, ФКИ м106 LookSay 9090
ve.lomonosova LookSay 9117
f1from itertools import groupbyf1from itertools import groupby
22
3def LookSay():3def LookSay():
n4    res = '1'n4    current = '1'
5    while True:5    while True:
t6        for digit in res:t6        for i in current:
7            yield int(digit)7            yield int(i)
8        res = ''.join((f'{len(list(g))}{k}' for kg in groupby(res)))8        current = ''.join([f'{len(list(count))}{elem}' for elemcount in groupby(current)])
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op