Answers for "python varaible inside string"

0

variable string in string python

>>> shepherd = "Mary"
>>> age = 32
>>> stuff_in_string = "Shepherd {} is {} years old.".format(shepherd, age)
>>> print(stuff_in_string)
Shepherd Mary is 32 years old.
Posted by: Guest on July-24-2020
0

a string varible in python

the_words = "this is a string varible. the varible is called the_words  "
Posted by: Guest on February-08-2022

Code answers related to "python varaible inside string"

Python Answers by Framework

Browse Popular Code Answers by Language