Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

formatted string output 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: #formatted #string #output #python
ADD COMMENT
Topic
Name
1+6 =