CurriculumWeek 03 · Data and the outside world
Week 03 · starts Jun 01

Data and the outside world

The week the course earns its title — analyzing real data, calling a real API.

Upcoming

Sessions

Practice exercises for this week

short · graded
  • wk03.p4
    Cohort score summary with statistics
    Import the statistics box and let it do the maths. Write one function that takes a list of scores and reports the average and the middle value — the five-line averaging loop, replaced by a function someone else already wrote.
    ~25–35 minView →
  • wk03.p5
    Days-until-the-deadline countdown
    Use the datetime box to answer a question that's tedious by hand: how many days until an application closes? Subtract one date from another and let Python count for you.
    ~25–35 minView →
  • wk03.p6
    Ask an AI what else is in the box
    You know random.randint and random.choice. But what *else* is in that box? Learn the one skill that unlocks every library — ask an AI to list a library's functions — then run two of them yourself to prove they are real.
    ~20–30 minView →
  • wk03.p7
    Which library for which job?
    Real programming starts with a question: "is there already a library for this?" Here are three everyday situations — each one explained in plain words — and your job is to find the Python library that handles it, using an AI and a quick web search.
    ~30–45 minView →
  • wk03.p8
    Trust, but verify
    An AI will happily explain any function — and now and then it is slightly wrong, or invents one that does not exist. Learn the habit that keeps you safe: ask, then run it yourself to check.
    ~25–35 minView →
  • wk03.p9
    Adopt a library
    Run the whole six-step move on a library nobody taught you. Pick a small problem you actually have, find a box for it, install it, and make something real you can screenshot.
    ~30–45 minView →
  • wk03.p1
    Read a real CSV with pandas
    Pick a small dataset, load it with pandas, peek at the rows, count them, and pull out a single column. The smallest honest data workflow.
    ~30–45 minView →
  • wk03.p2
    Slice the data — filter, sort, group
    Take the same CSV from the previous practice. Filter it, sort it, group it. Then write three plain-English findings.
    ~45–60 minView →
  • wk03.p3
    Top five rows per category
    Take a CSV, group it by a category column, and pull out the top five rows from each group. Pandas at its most useful.
    ~45–60 minView →

Assignment for this week

Research data summary tool
Either summarize a CSV with pandas, or call a public API, save it to CSV, and print three useful insights.
Due Sun, Jun 07 · 9:00 pm
in 3 weeks
Read brief →