This is your homework repository for the Python Intro course. Each week you'll add your assignment here alongside starter data files provided by the course.
python-intro-homework/
week-1/
data/ ← starter files provided for you
week-2/
data/
...
week-7/
data/
expenses.csv
notes.txt
students.csv
assignment-7/ ← your work goes here
warmup1.py
warmup2.py
...
Each week's data/ folder contains any files your assignments need — CSVs, text files, and other resources. Do not edit files in data/. Your work lives in your assignment-[#] folder. Blank folders have a .gitkeep — don't worry about deleting this, it's just a placeholder.
-
Pull the latest from
mainso you have the week's data files:git checkout main git pull origin main
-
Create a new branch for the week's assignment:
git checkout -b assignment-[#] -
Create your working folder inside the week's folder:
mkdir week-[#]/assignment-[#] cd week-[#]/assignment-[#]
-
Write your code there. Reference data files using a relative path — for example:
with open("../data/expenses.csv", "r") as file: ...
The
..moves up one level from yourassignment-[#]folder to theweek-[#]folder, then intodata/. Each week's assignment instructions will show you the exact paths to use. -
Commit and push your branch, then open a pull request from
assignment-[#]intomain. Submit the PR link (not the repo link) in the LMS.
Your pull request should contain only your .py files and any output files your programs generate (like food_report.txt). It should not include changes to files in data/.
The PR URL should look like github.com/your-username/python-intro-homework/pull/[number], not the link to your repo homepage.