Debug Python Code with Generative AI Case Study
Debug one small Python program, a village show's points tally, with an AI assistant as your partner. Read tracebacks before you ask, give the assistant what it needs, look inside the program with print, logging and pdb, and check every fix with a test you wrote yourself.
- Beginner level
- 2 modules
- 3 lessons
- 15 quiz questions
Syllabus
01Hand Over the BugMeet the broken script, learn to read what Python tells you, and send the assistant a message it can actually use.1 lesson
02Find the Bug and Fix ItTrack down a bug that raises no error, using hand-worked answers, print, logging and pdb, then test the assistant's fix before you trust it.2 lessons