Some Applications of Markov Chain in Python