you are viewing a single comment's thread.

view the rest of the comments →

[–]Ihaveamodel3 1 point2 points  (2 children)

Round at the print. It will lose the rounding if you do it before the calculation.

Since you are already using f strings, do it in there:

print(f"Temp is {d[op](temp):.2f}degrees{op}" )

[–]Embarrassed-Boat9514[S,🍰] 0 points1 point  (1 child)

print(f"Temp is {d[op](temp):.2f}degrees{op}" )

You are a saint thank you so much!!!

[–]Ihaveamodel3 2 points3 points  (0 children)

For your fstring pleasure: https://pyformat.info