Skip to Content
Python Intermediate: Write Code You Won't Be Embarrassed to Share
Intermediate
0 likes
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

Sign in to save your progress.

Course Home
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?
3. A coworker wants to add the project's .venv folder to Git so everyone gets the same packages. What is the better approach?
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 comment

No comments yet.