Кирилл Иванович Архипов LookSay 4849
сян ли LookSay 5107
f1from itertools import groupbyf1from itertools import groupby
22
3def LookSay():3def LookSay():
n4    current = '1'n4    s = '1'
5    while True:5    while True:
n6        for digit in current:n6        for digit in s:
7            yield int(digit)7            yield int(digit)
t8        next_sequence = ''t8        next_s = ''
9        for digit, group in groupby(current):9        for k, g in groupby(s):
10            count = len(list(group))10            count = len(list(g))
11            next_sequence += str(count) + digit11            next_s += str(count) + k
12        current = next_sequence12        s = next_s
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op