This commit is contained in:
Casper V. Kristensen 2019-04-07 04:55:34 +02:00
parent 5535a90dcd
commit 44d9d68fe4
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -33,7 +33,7 @@ def is_restaurant_open(name, open, close) -> Prediction:
p.probability = 1 / 11 p.probability = 1 / 11
else: else:
p.reasons.append(f"Our favorite pizza place, {name}, is closed.") p.reasons.append(f"Our favorite pizza place, {name}, is closed.")
p.reasons.append(f"We can conclude from this, that there is {1 - (1/11)}% chance of it currently being night outside!") p.reasons.append(f"We can conclude from this, that there is {1 - (1/11):.1f}% chance of it currently being night outside!")
p.probability = round(1 - (1 / 11), 2) p.probability = round(1 - (1 / 11), 2)
return p return p