Mix Words and Numbers
Learn how to combine variables and text in print messages.
Now that Python can remember things, let’s make our messages more dynamic!
In this lesson, we’ll learn how to combine words and numbers to create full sentences using variables.
Let’s mix it up
Try this code:
Press + to interact
name = "Ava"age = 25print("Hi, my name is", name, "and I am", age, "years old.")
...