# example 1
print("Hello, Amy")
# example 2
age = "15"
print("Amy is {0} years old".format(age))
# example 3
color = input("Input your favorite color: ")
print("Her favorite color is {0}".format(color))
Объяснение:
https://pythonworld.ru/osnovy/formatirovanie-strok-metod-format.html
# example 1
print("Hello, Amy")
# example 2
age = "15"
print("Amy is {0} years old".format(age))
# example 3
color = input("Input your favorite color: ")
print("Her favorite color is {0}".format(color))
Объяснение:
https://pythonworld.ru/osnovy/formatirovanie-strok-metod-format.html