Лукьянов Артём Васильевич, 317, Севастопольский филилал LookSay 5120
Sabua8 LookSay 4649
f1def LookSay():f1def LookSay():
n2    n = '1'n2    term = '1'
3    while True:3    while True:
n4        for digit in n:n4        for ch in term:
5            yield int(digit)5            yield int(ch)
6        next_n = ''6        next_term = ''
7        count = 17        count = 1
n8        for i in range(1, len(n)):n8        for i in range(1, len(term)):
9            if n[i] == n[i - 1]:9            if term[i] == term[i - 1]:
10                count += 110                count += 1
11            else:11            else:
n12                next_n += str(count) + n[i - 1]n12                next_term += str(count) + term[i - 1]
13                count = 113                count = 1
t14        next_n += str(count) + n[-1]t14        next_term += str(count) + term[-1]
15        n = next_n15        term = next_term
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op