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