Андреева Елизавета, 522 LookSay 9484
Дудаков Денис Вадимович ИИКБ_119 LookSay 10707
f1from itertools import groupbyf1from itertools import groupby
22
3def LookSay():3def LookSay():
n4    curr_val = '1'n4    term = '1'
5    yield int(curr_val)5    yield int(term)
6    while True:6    while True:
t7        curr_val = ''.join((str(len(list(g))) + k for k, g in groupby(curr_val)))t7        term = ''.join((str(len(list(group))) + k for k, group in groupby(term)))
8        for i in curr_val:8        for t in term:
9            yield int(i)9            yield int(t)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op