Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fancier Output Formatting in python

>>> animals = 'eels'
>>> print(f'My hovercraft is full of {animals}.')
My hovercraft is full of eels.
>>> print(f'My hovercraft is full of {animals!r}.')
My hovercraft is full of 'eels'.
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Fancier #Output #Formatting #python
ADD COMMENT
Topic
Name
5+4 =