python put \ in string code example
Example 1: python put quotes in string
# any character with a "\" before it is ignored as syntax and placed in the string
print("\"This should work for you\" I said")
Example 2: insert value in string python
>>> shepherd = "Martha"
>>> age = 34
>>> # Note f before first quote of string
>>> stuff_in_string = f"Shepherd {shepherd} is {age} years old."
>>> print(stuff_in_string)
Shepherd Martha is 34 years old.