I have published an article Markov Chain: Simple example with Python in medium.
The python code can be viewed at:
A Markov process is a stochastic process that satisfies Markov Property. Markov process is named after the Russian Mathematician Andrey Markov. Markov Chain is a type of Markov process and has many applications in real world. Google’s Page Rank algorithm is based on Markov chain. Markov Chain can be applied in speech recognition, statistical mechanics, queueing theory, economics, etc. In Markov Chain, the next state of the process depends only on the previous state and not on the prior sequence of events
For more details please refer the above link to the article.
You can also refer to my blog for the article details: