Quiz: Mix Words and Numbers
Quiz yourself on combining text and numbers in Python print statements using commas.
We'll cover the following...
You leveled up your Python print skills in the last lesson by combining variables, numbers, and text in a single line. You also explored how commas in print() add spaces automatically, and how f-strings let you format messages like a pro.
Now, check your understanding with a quick quiz!
What does the print() function do when you separate items with commas?
Combines them with no spaces.
Adds commas in between them.
Adds spaces between them automatically.
Nice job! You’ve learned how to mix words, variables, and numbers in print statements—and how to format clean, readable messages in Python.
What’s next?
Now it’s your turn to get creative! In the next hands-on project, you’ll create a fun character profile using variables and formatted print statements. Think robots, aliens, superheroes—anything goes! You’ll practice combining everything you’ve learned so far to bring your character to life in Python. Let the storytelling begin!