Courses
Python Advanced: Code That Scales Past Your Own Laptop
Final Check: Python Advanced
Fifteen questions across the whole course: closures, decorators, generators, context managers, typing, concurrency, packaging and profiling. If you pass this, you can make the calls that decide whether Python code holds up past your own laptop.
Course content
Join this Course
Sign in to save your progress.
-
Functions That Wrap Functions
-
Python Closures: Functions That Remember
-
Python Decorators in Real Code: Timing, Retry and Logging
-
-
-
Data That Doesn't Fit in Memory
-
Python Iterators: What a for Loop Actually Does
-
Python Generators and yield: One Piece at a Time
-
Python Context Managers: Clean Up Even When Things Fail
-
-
-
Catch Bugs Before You Run the Code
-
Python Type Hints Beyond the Basics: Optional, Union, Generics
-
Checking Types With mypy in a Real Project
-
-
-
Doing More Than One Thing at a Time
-
Python Concurrency Basics: Threads, Processes or asyncio?
-
Python asyncio: Wait for Many Things Without Waiting Longer
-
-
-
Ship It, Then Make It Fast
-
Packaging a Python Project With pyproject.toml
-
Profiling Python Code: Measure Before You Optimize
-
-
- Final Check: Python Advanced
1.
Which statement about closures is correct?
2.
What is @timed above def report(): equivalent to?
3.
Your @logged decorator catches exceptions, logs them, and returns None. What is wrong with it?
4.
Which retry rule is safest?
5.
A for loop calls two functions behind the scenes. Which?
6.
You need to process a file bigger than your RAM and only keep the totals. Which design fits?
7.
What does print(gen) show for a generator?
8.
Which tool makes sure a temporary file is removed even if the code that uses it fails?
9.
Which hint says "a str, or nothing"?
10.
What does a Protocol let you express?
11.
Your team wants mypy on a large old project. What works best?
12.
Which job suits ProcessPoolExecutor?
13.
Without a timeout, one supplier API in your asyncio gather never responds. When does your script finish?
14.
Before publishing a wheel, what should you check inside it?
About
Fifteen questions across the whole course: closures, decorators, generators, context managers, typing, concurrency, packaging and profiling. If you pass this, you can make the calls that decide whether Python code holds up past your own laptop.
- Duration
- 15 min
- Last update
- 09/02/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.