Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -0,0 +1,9 @@
|
|||
from more_itertools import groupby_transform, take, ilen
|
||||
|
||||
def lookandsay(seq = "1"):
|
||||
yield seq
|
||||
while True:
|
||||
yield (seq := "".join(f"{count}{n}" for n, count in
|
||||
groupby_transform(seq, reducefunc = ilen)))
|
||||
|
||||
list(take(5, lookandsay()))
|
||||
Loading…
Add table
Add a link
Reference in a new issue