Python interview questions
Python interview questions in 19 module banks: what each bank covers, how many questions it holds and the levels they are asked at.
-
Module 1
Getting started: install, run and read Python
18 questions: 6 warm-ups and 12 with model answers · Levels: Fresher to senior
-
Module 2
Values, variables, numbers and strings
30 questions: 10 warm-ups and 20 with model answers · Levels: Fresher to senior
-
Module 3
Control flow: decisions, loops and pattern matching
21 questions: 7 warm-ups and 14 with model answers · Levels: Fresher to senior
-
Module 4
Functions, scope, closures and decorators
30 questions: 10 warm-ups and 20 with model answers · Levels: Fresher to senior
-
Module 5
Built-in data structures: lists, dicts, sets and more
33 questions: 11 warm-ups and 22 with model answers · Levels: Fresher to senior
-
Module 6
Modules, packages and the standard library
21 questions: 7 warm-ups and 14 with model answers · Levels: Fresher to senior
-
Module 7
Errors, exceptions and context managers
21 questions: 7 warm-ups and 14 with model answers · Levels: Fresher to senior
-
Module 8
Files, paths and data formats
33 questions: 11 warm-ups and 22 with model answers · Levels: Fresher to senior
-
Module 9
Object-oriented Python and the data model
47 questions: 12 warm-ups and 35 with model answers · Levels: Fresher to staff
-
Module 10
Iterators, generators and functional tools
18 questions: 4 warm-ups and 14 with model answers · Levels: Fresher to staff
-
Module 11
Type hints and static type checking
43 questions: 9 warm-ups and 34 with model answers · Levels: Fresher to staff
-
Module 12
Testing, debugging and code quality
15 questions: 4 warm-ups and 11 with model answers · Levels: Fresher to staff
-
Module 14
Concurrency and parallelism: threads, processes, interpreters
31 questions: 8 warm-ups and 23 with model answers · Levels: Fresher to staff
-
Module 15
Async programming with asyncio
38 questions: 6 warm-ups and 32 with model answers · Levels: Fresher to staff
-
Module 16
Practical Python: text, CLIs, web, automation and security
51 questions: 13 warm-ups and 38 with model answers · Levels: Fresher to staff
-
Module 17
Performance, profiling and debugging in depth
15 questions: 4 warm-ups and 11 with model answers · Levels: Fresher to staff
-
Module 18
Advanced Python: data model, metaprogramming and internals
22 questions: 4 warm-ups and 18 with model answers · Levels: Fresher to staff
-
Module 19
Python for coding interviews and online assessments
9 questions: 1 warm-up and 8 with model answers · Levels: Fresher to senior
-
Module 21
Python everywhere: data, web, AI and next steps
15 questions: 5 warm-ups and 10 with model answers · Levels: Fresher to senior