Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to insert values into string

>>> stuff_in_string = "Shepherd %s is %d years old." % (shepherd, age)
>>> print(stuff_in_string)
Shepherd Martha is 34 years old.
Source by matthew-brett.github.io #
 
PREVIOUS NEXT
Tagged: #python #insert #values #string
ADD COMMENT
Topic
Name
3+4 =