Search⌘ K
AI Features

Quiz: Python String

Test your understanding of Python strings by completing this quiz that covers mixing text, variables, and numbers in print statements. Practice formatting messages using f-strings and prepare to create a fun character profile with these skills in upcoming projects.

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!

Technical Quiz
1.

What does the print() function do when you separate items with commas?

A.

Combines them with no spaces.

B.

Adds commas in between them.

C.

Adds spaces between them automatically.


1 / 3

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!