Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fancier Output Formatting in python

>>> import math
>>> print(f'The value of pi is approximately {math.pi:.3f}.')
The value of pi is approximately 3.142.
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Fancier #Output #Formatting #python
ADD COMMENT
Topic
Name
3+6 =