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