Strings
Strings
# This is an ordinary string
print("This is a string")
# This is a function Doc string
def function(x):
"""This is a doc string explaining
the inner workings of this function
"""
y = x * 7
reutrn(y)
x = 17
printer = "hewlet packard"
# This is a template literal "F string"
print(f"I just printed {x} pages to the printer {printer}")
# or for less elegence
print("I just printed" + x + "pages to the printer" + printer)
Children