Posts by Matheeus00 • 61 points
1 post
-
6
votes5
answers140931
viewsA: How to limit decimal numbers in Python?
Another way to format in a very similar way is with f-Strings: pi = 3.141592653589793 print(f'O resultado de PI é {pi:.2f}') Note the use of 'f' before the message that will come and also the…