Practical Python · Lesson 57 of 76
Project structure
Once a project has more than one file, give it a clear shape so anything is easy to find:
my_project/
main.py the entry point you run
helpers.py supporting functions
data/
students.csv data files
README.md what the project is and how to run it
.venv/ the virtual environment (not shared)
A few habits that pay off:
- Keep code and data in separate places.
- Put a short README so you (and others) remember how to run it.
- One job per file — don't pile everything into
main.py.
Good structure is a kindness to your future self, who won't remember today's details.
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →