RosettaCodeData/Task/EKG-sequence-convergence/Python/ekg-sequence-convergence-2.py

7 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)]))