You will require matplotlib for python. import random from matplotlib import pyplot Monte-Carlo simulations are based on random numbers. Roll a dice which will give a value between 1-6. You can either add or subtract that value to a running total. You flip a coin…