Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fancier Output Formatting in python

>>> year = 2016
>>> event = 'Referendum'
>>> f'Results of the {year} {event}'
'Results of the 2016 Referendum'
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Fancier #Output #Formatting #python
ADD COMMENT
Topic
Name
9+2 =