Python print() Quiz
- Questions: 15
- Easy
- Pass mark: 70%
How well do you know Python's print()? This free quiz has 15 short questions on the function you use in almost every program: printing text and numbers, quotes and escape characters, and controlling the output with sep, end, flush and f-strings.
What the quiz covers
- Single, double and triple quotes, and apostrophes inside text
- Escape characters:
\n,\tand\\ - Printing several values and mixing text with numbers
- Line breaks, the
sepandendparameters andflush=True - f-string formatting: decimal places, thousands separators and
{name=}for debugging
How it works
- 15 questions: 11 with one correct answer, 4 where you select every correct answer
- After each question you see the correct answer and a short explanation
- No time limit and no account needed
- Score 70% or more (11 of 15) to pass
New to print()? Read the Python print() function guide first, or try the code in the online Python editor. When you are done, test the rest of the basics in the Python Basics Quiz.