mannanovairat LookSay 4629
Sabua8 LookSay 4649
f1def LookSay():f1def LookSay():
2    term = '1'2    term = '1'
3    while True:3    while True:
t4        for digit in term:t4        for ch in term:
5            yield int(digit)5            yield int(ch)
6        next_term = ''6        next_term = ''
7        count = 17        count = 1
8        for i in range(1, len(term)):8        for i in range(1, len(term)):
9            if term[i] == term[i - 1]:9            if term[i] == term[i - 1]:
10                count += 110                count += 1
11            else:11            else:
12                next_term += str(count) + term[i - 1]12                next_term += str(count) + term[i - 1]
13                count = 113                count = 1
14        next_term += str(count) + term[-1]14        next_term += str(count) + term[-1]
15        term = next_term15        term = next_term
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op