Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to insert a variable into a string python

>>> name = "Fred"
>>> f"He said his name is {name}."
'He said his name is Fred.'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #variable #string #python
ADD COMMENT
Topic
Name
1+4 =