Round
This commit is contained in:
parent
5535a90dcd
commit
44d9d68fe4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user