
Programming & Coding · 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.
Quiz · Python
An intermediate Python programming quiz: *args and **kwargs, comprehensions, closures, generators, exceptions, zip(), enumerate() and list aliasing.
Python quizzes for every level: variables and data types, predicting what Python code prints, and intermediate functions, lists and dictionaries.
Before you start
You have 30 seconds for each question. When time runs out, the question counts as wrong.
Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.
At the end you see your score and can go back through every question and its answer.
XP scales with your score. Replays earn XP only when you beat your previous best.
From players
Play next

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

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