Exercise: Flip
Define flip(p) that returns True with probability p and False with probability (1-p).
The only built-in you can use is random.random:
>>> import random
>>> random.random() # returns a number in [0,1)
0.4013560344771465
which returns a uniformly distributed number in the interval [0,1). You cannot
specify any parameters to random.random().