Courses
Python Intermediate: Write Code You Won't Be Embarrassed to Share
Final Check: Python Intermediate
Fifteen questions across the whole course: environments, project structure, classes, files, comprehensions, testing and debugging. If you pass this, you can work on a shared Python project without being the person everybody has to clean up after.
Course content
Join this Course
Sign in to save your progress.
-
Set Up Projects That Don't Break Each Other
-
Python Virtual Environments and pip: One Project, One Environment
-
Pinning Python Dependencies With requirements.txt
-
-
-
Organize Code Other People Can Read
-
Python Modules and Packages: Splitting One Big File
-
Python Imports: Why ModuleNotFoundError Keeps Happening
-
Python Classes: When a Dictionary Is No Longer Enough
-
-
-
Work With Real Files
-
Python File Handling: Open, Read, Write, and Always Use with
-
Python pathlib: Stop Building File Paths by Hand
-
Reading, Cleaning and Writing CSV Data in Python
-
-
-
Shorter Code That Still Says What It Does
-
Python Comprehensions: Lists, Sets and Dictionaries
-
When a Comprehension Should Be a Plain Loop
-
-
-
Prove It Works Before Someone Else Finds Out
-
Python Testing Basics With pytest
-
Debugging Python With print, logging and pdb
-
-
- Final Check: Python Intermediate
1.
You start a new project that needs a different version of a library than your other projects. What is the first step?
2.
A new teammate cloned the repository and asks how to get the same packages you have. What do you tell them?
3.
Your 1,500-line script has price rules, file reading and email sending mixed together. What is a sensible first step?
4.
Running python shop/orders.py gives "attempted relative import with no known parent package". What is going on?
5.
You need an order object with items, a status, and the rule "no new items after payment". What is the best fit?
6.
You want a small class that only holds a product's name, price and stock, with a readable print and == comparison. What saves the most typing?
7.
Your script crashed halfway while writing report.csv with "w". What does the next program that reads report.csv see?
8.
You need every .csv file in a folder and all its subfolders. Which is right?
9.
A date column has "10/03/2026". Your cleaning function expects YYYY-MM-DD. What should it do?
10.
What does {e.strip().lower() for e in emails} produce?
11.
A comprehension has two nested for parts, three conditions and needs a line break to fit. What does the course recommend?
12.
When should a function's tests include the exact limit, like 1,000 for free shipping?
13.
Which logging setup belongs in a module that other scripts import?
14.
Which of these should never appear in a log file?
15.
You found the cause of a bug. What should you do before fixing it?
About
Fifteen questions across the whole course: environments, project structure, classes, files, comprehensions, testing and debugging. If you pass this, you can work on a shared Python project without being the person everybody has to clean up after.
- Duration
- 15 min
- Last update
- 09/14/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.