I need the Pseudo Code and Python function forthe following problem:
Develop a solution to flip a coin a given amount of times andthen print the number of heads and the number of tails.
The equation to toss the coin is
Coin = Integer(Random * 2) + 1
This is called a simulation question where you use a mathfunction to represent mathematically what you might observephysically, by actually flipping a coin.
Write a function that is part of yoursolution that has the number of tosses as an inputparameter.
Scenario: “Flip a ‘coin’ a specified number of times and countthe ‘heads’ and ‘tails’ that occur”.
O.k, Simulate this physical process
OR
OR