RosettaCodeData/Task/EKG-sequence-convergence/Python/ekg-sequence-convergence-2.py
2023-07-01 13:44:08 -04:00

6 lines
202 B
Python

# After running the above, in the terminal:
from pprint import pprint as pp
for start in 5, 7:
print(f"EKG({start}):\n[(<next>, [<state>]), ...]")
pp(([n for n in islice(EKG_gen(start), 21)]))