Here I will write out all the flow charts in python, and will even comment the code so you can follow along.