This commit is contained in:
Casper 2019-04-07 04:55:34 +02:00
parent 5535a90dcd
commit 44d9d68fe4
No known key found for this signature in database
GPG Key ID: 289CA03790535054

View File

@ -33,7 +33,7 @@ def is_restaurant_open(name, open, close) -> Prediction:
p.probability = 1 / 11
else:
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)
return p