Exercise 9: Block or not
Hello, I can't understand what the problem is? I guess it's not on my side:
This is my code:
def bot8(pbot, p8_bot, p8_human):
p_human = 1 - pbot
p8 = p8_bot * pbot + p8_human * p_human
pbot_8 = (p8_bot * pbot) / p8
print(pbot_8)
# you can change these values to test your program with different values
pbot = 0.1
p8_bot = 0.8
p8_human = 0.05
bot8(pbot, p8_bot, p8_human)