Can you end a generation early with enumerate()? For example, I am using the code at tedlee/markov on GitHub as a starting point for my own Markov chain program (though it is not a direct fork), and it says the following in markovgen.py: