Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add variable in text python

>>> shepherd = "Mary"
>>> string_in_string = "Shepherd {} is on duty.".format(shepherd)
>>> print(string_in_string)
Shepherd Mary is on duty.
Source by matthew-brett.github.io #
 
PREVIOUS NEXT
Tagged: #add #variable #text #python
ADD COMMENT
Topic
Name
8+7 =