Your task is to complete a function “count_heads()” that takes two inputs N and R. The function should return the probability of getting exactly R heads on N successive tosses of a fair coin. A fair coin has equal probability of landing a head or a tail (i. e. 0.5) on each toss.
Function “count_heads()” that takes two inputs N and R. the function should return the probability of getting exactly R heads
Read more