1name = "Steven"
2
3# Using f-strings
4print(f"Hi, {name}!")
5
6# Using format()
7print("Hi, {}!".format(name))
1print("If there was a birth every 7 seconds, there would be: ", births, "births")
2
1x = input("Enter the first number: ")
2y = input("Enter the second number: ")
3z = int(x)+int(y)
4#Just use a comma
5print("The sum of the numbers you entered =",z)
1# This prints out "John is 23 years old."
2name = "John"
3age = 23
4print("%s is %d years old." % (name, age))
5# note: the letter is based on the datatype. %s = string, %d = decimal