Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

insert into string python more than one

>>> shepherd = "Mary"
>>> age = 32
>>> stuff_in_string = "Shepherd {} is {} years old.".format(shepherd, age)
>>> print(stuff_in_string)
Shepherd Mary is 32 years old.
Source by matthew-brett.github.io #
 
PREVIOUS NEXT
Tagged: #insert #string #python
ADD COMMENT
Topic
Name
4+8 =