PythiloLesson 3 of 3 · progress kept in this browser

Reviewing AI-written code

Generated code tends to look finished, so read it as you would a stranger's pull request. Run it on awkward inputs before you trust it.

Your task

An assistant wrote these three functions, and each has at least one bug. normalize_emails should trim and lower-case, skip blanks, and drop duplicates within one call. page_of should return a 1-based page and raise ValueError for a page below 1. total_cents should sum decimal price strings exactly and raise ValueError on a bad price. Fix them.

All lessons