Skip to content

Quiz · Python

Python Basics Quiz: Syntax, Variables & Data Types

A Python quiz for beginners: variable names, numbers and strings, type conversion, // and %, f-strings, comments and the difference between == and is.

Questions
15
Difficulty
Easy
Time
~8min
Per question
15sec

What it covers

Python

A topic in Programming & Coding.

Python quizzes for every level: variables and data types, predicting what Python code prints, and intermediate functions, lists and dictionaries.

Before you start

How it works

  1. 1

    The clock

    You have 15 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of Python

Programming & Coding · Python

Python Code Output Quiz: What Does This Code Print?

Python output questions: predict what short snippets print, from slicing, range() and scope to comprehensions and the mutable default argument trap.

Medium difficulty15 questions~10 min
+120 XPPlay