Tip:
Highlight text to annotate it
X
So let's up the ante and say we have a coin that has a certain probability
of coming up with heads--again, it might be 0.5.
Just like before it will be an input to the function f and now I'm going to flip the coin 3 times
and I want you to calculate the probability that the heads comes up exactly once.
Three is not a variable so you could only works for 3 flips not for 2 or 4
but the only input variable is going to be the coin probability 0.5.
So please change this code to express that number.