LookSay/Viliana
LookSay/lowerchik
t1from itertools import groupbyt1from itertools import groupby
22
3def LookSay():3def LookSay():
4    lst = [1]4    lst = [1]
5    while True:5    while True:
6        for num in lst:6        for num in lst:
7            yield num7            yield num
8        iter_ = groupby(lst)8        iter_ = groupby(lst)
9        lst = []9        lst = []
10        for (key, group) in iter_:10        for (key, group) in iter_:
11            lst.append(len(list(group)))11            lst.append(len(list(group)))
12            lst.append(key)12            lst.append(key)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op