simulate_biased_coin

Simulate a Biased Coin


Write a python Program to Simulate a biased coin with probability of head is equal to p.

Inputs
  • probability_of_head: probability with which head is likely to appear. If probability_of_head = 0.5 this suggest coin is unbaised, otherwise coin is biased.
  • n : Number of times experiment is to be run.
Output
  • A list of n elements, where 1 denotes output is head , 0 denotes output is tail