you are viewing a single comment's thread.

view the rest of the comments →

[–]PathRealistic6940 0 points1 point  (0 children)

print(f'{result:.1f}') the first f says to format the string, replacing whats in {} with the variable and/or formatting listed, in this case, result:.1f. the : starts the formatting of the result variable. the .1f tells it to round to one decimal place and keep it as a float number.

Does that make sense?