Python Print, Input and f-string Quiz

This Python print and f-string quiz checks how output is formatted and what input() gives you back. It is made for beginners writing their first interactive programs.

Easy 10 questions ~5 minutes Pass at 80% Python 3.12

Choose a mode

Playing as a guest: sign in to keep your XP and streak.

Sample question

Question 1 of 10

What does print() with no arguments do?

Show the answer

A. Prints an empty line print() still prints its end value, which is a newline by default. So it outputs an empty line.

What this quiz covers

  • print() with sep and end
  • Putting values into text with f-strings
  • Why input() always returns a string
  • Rounding numbers inside an f-string

Questions people ask

Do I need an account?

No. Anyone can play. Sign in to keep your XP, streak, badges and history.

Which Python version?

Python 3.12. Every question about output was checked by running the code.

Can I retake it?

Yes. Your best score is kept, and the questions and answers are shuffled each time.