Week 1 — Setup & First Programs · ~15 min

Using AI in this course: the rules

Free preview

Why this lesson comes first

AI assistants like ChatGPT, Claude, Gemini and Copilot can write a working Python script in seconds. So why learn Python at all?

Because writing the script was never the whole job. Someone has to decide what the script should do, check that it does it, fix it when the data is messy, and answer for it when it deletes the wrong files. AI makes the typing cheap. It makes understanding more valuable, because there is more code around that nobody understands.

You can only check code you could have written yourself. So this course brings AI in gradually.

The three stages

StageWeeksWhat AI may doWhat you must do
Foundations1–6Explain code, concepts and error messages, like a patient tutor.Type every line of your own code.
Pair7–11Suggest approaches, draft functions, generate test data.Read, run, and test every line, and be able to explain it in a spot check.
Lead12 (capstone)Anything a teammate could do.Own the result: tests, README, and a live code defence.

The course rule has always been: AI may explain; code you can't walk through line by line is not your work. The stages just say when AI may also start drafting.

Rule 1: Disclose your AI use

Every submission includes an AI-use note. There's a box for it on the submission form:

AI use: asked ChatGPT why my loop printed the last item twice
What I checked: re-ran with 0, 1 and 5 items
What it got wrong: its fix used a while loop I didn't need; kept my for loop

"No AI used" is a fine answer. Honest disclosure never costs marks. Hidden AI use that we discover in a spot check is treated as not your work.

Rule 2: Never paste these into an AI tool

  • Passwords, API keys, tokens, the contents of .env files.
  • Real people's data: customer spreadsheets, phone lists, BVN, NIN, bank details.
  • An employer's private code or data, unless their policy allows it.

Under the Nigeria Data Protection Act 2023 (NDPA), other people's personal data may only be used for a lawful reason and must be kept secure. Pasting it into a public chatbot sends it to a third party. Week 8 goes deeper. For now: when you need sample data, invent it.

Rule 3: Verify before you trust

AI is fluent and frequently wrong. In Python that looks like:

  • functions or arguments that don't exist (list.push, pandas.read_xlsx),
  • packages that don't exist (Week 4 explains why this is dangerous),
  • code that works on the example and fails on empty input, a huge file, or a Windows path.

Run it, test edge cases, and check the official docs (docs.python.org, the library's own docs).

Rule 4: You own what you ship

"The AI did it" fails a code review, a job, and a client relationship. If your name is on it, it's yours.

What stays valuable

Reading tracebacks, breaking problems into steps (Week 2's pseudocode), testing, handling messy real data, automating real tasks for real people, and explaining your code clearly. AI makes all of these more valuable, and they're the spine of this course.

Try it now

Create AI-NOTES.md in your python-course folder. Add your first entry, even if it's "Week 1: no AI used". Add to it every week. At the end it's evidence for employers of how you work with AI.

Sign in to track your progress.