Skip to content

Practical exercise

Break and fix five tiny programs

Every programmer's day is mostly debugging. The skill is not memorising, the skill is staying calm with red text. Today you will be given five broken programs. Your job is to read the error, find the line, fix it, and run. By the end you will know the four most common Python errors by sight.

40 min·practitioner
Mimi the mascot, encouraging you

Now try it

Break and fix five tiny programs

Stretch

Open any chatbot, paste a real error from your own code, and ask the model to explain the error to you in Urdu before fixing. Write down whether the explanation matched your guess.

Goes into your portfolio

A photographed handwritten cheat sheet of four common Python errors with one line fix each, plus a Replit URL with the five fixed programs.