Courses
Python Intermediate: Write Code You Won't Be Embarrassed to Share
Check Yourself: Set Up Projects That Don't Break Each Other
Five scenario questions on virtual environments, pip and requirements.txt. If you miss more than one, reread the two lessons before moving on.
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 upgraded a library for a new project, and an older script on the same computer stopped working. Neither project uses a virtual environment. What is the most likely cause?
2.
You ran pip install requests, but your script still says "No module named 'requests'". What do you check first?
3.
A coworker wants to add the project's .venv folder to Git so everyone gets the same packages. What is the better approach?
4.
You are writing an application that runs every morning on a server. How should requirements.txt list its packages?
5.
You ran pip freeze > requirements.txt and the file has 140 packages, including many your project never uses. What probably happened?
About
Five scenario questions on virtual environments, pip and requirements.txt. If you miss more than one, reread the two lessons before moving on.
- Duration
- 5 min
- Last update
- 09/11/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.