Максимова Яна Дмитриевна LookSay 5764
Sabua8 LookSay 4649
f1def LookSay():f1def LookSay():
n2    curr = '1'n2    term = '1'
3    while True:3    while True:
n4        for c in curr:n4        for ch in term:
5            yield int(c)5            yield int(ch)
6        next_val = ''6        next_term = ''
7        count = 17        count = 1
n8        for i in range(1, len(curr)):n8        for i in range(1, len(term)):
9            if curr[i] == curr[i - 1]:9            if term[i] == term[i - 1]:
10                count += 110                count += 1
11            else:11            else:
n12                next_val += str(count) + curr[i - 1]n12                next_term += str(count) + term[i - 1]
13                count = 113                count = 1
t14        next_val += str(count) + curr[-1]t14        next_term += str(count) + term[-1]
15        curr = next_val15        term = next_term
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op