Data Science, Towards Data Science, Markov Chains, Monte Carlo, Simulation.
For example, you might require the first word to be capitalized, so your text doesn’t begin mid-sentence: while first_word.islower(): first_word = np.random.choice(corpus) I hope this is helpful for those of you getting started in the wide world of Markov chains. If this code can be improved