# Name: Eric Pereira
# problem 3.31

from scipy.stats import binom

print("These are the answers to all 3.31")

#answer to a
print("a is: " + str(binom.sf(18, 20, .8, 1)))

#answer to b
print("b is: " + str(1/0.8))

#output is
#a is: 0.206084718948
#b is: 1.25