5 Quizzes•35 Questions

Learn Python

Python is used for scripting, web backends, automation and data science. These quizzes move from syntax and data types to functions, collections and the language features interviewers like to probe.

Written against Python 3.10+.

What you will practise

  • Reading and predicting Python code
  • Writing functions with sensible defaults
  • Choosing between lists, tuples, sets and dicts
  • Generators, decorators and context managers

Roadmap

Work through the levels in order, or jump to where you are.

1

Beginner

Foundations

  • Variables and types
  • Operators
  • Strings
  • Conditionals

Python Basics

2

Basic

Functions & control flow

  • Loops
  • Function arguments
  • Scope

Quiz for this level coming soon.

3

Intermediate

Data structures

  • Lists and tuples
  • Dictionaries and sets
  • Comprehensions

Lists, Tuples, Sets & Dicts, Python Functions

4

Advanced

Language internals

  • Generators
  • Decorators
  • Mutable defaults
  • Context managers

Advanced Python

5

Expert

Interview depth

  • Complexity trade-offs
  • Concurrency basics
  • Testing

Python Interview Questions

Python quizzes

Interactive Python challenges

Hands-on activities: find bugs, complete code, order steps and match concepts.

All Python challenges →

Python articles

FAQ

Which Python version do the quizzes assume?

Python 3.10 or newer. Where behaviour differs between versions, the explanation says so.

I am new to programming. Where should I start?

Start with Python Basics, then move to Functions and Collections.

Are these quizzes good for Data Science interviews?

Yes. Understanding how lists, tuples, and dictionaries work under the hood is critical for data science roles. The advanced quizzes cover list comprehensions and generator expressions.

Is Python pass-by-value or pass-by-reference?

Python uses "pass-by-object-reference". Our advanced quizzes have specific questions explaining what happens when you mutate a list inside a function vs reassigning it.

Do you cover popular libraries like Pandas or NumPy?

Currently, these quizzes focus strictly on the Python standard library and language fundamentals. Library-specific quizzes are planned for the AI & Data category.