print("Hello, world!")
Hello, world!
name = "John" age = 15 print("My name is", name, "and I am", age, "years old.")
My name is John and I am 15 years old.
x = 5 y = 3 print("The sum of", x, "and", y, "is", x + y)
The sum of 5 and 3 is 8
name = "John" age = 15 print("My name is %s and I am %d years old." % (name, age))
My name is John and I am 15 years old.
name = "John" age = 15 print(f"My name is {name} and I am {age} years old.")
My name is John and I am 15 years old.
name = "John" age = 15 print(f"{name=} and {age=}") # Output: name = 'John' and age = 15
name='John' and age=15