Surfalytics
Back to the lesson

Hands-on labs

Just Enough Python — Labs

Each lab gives you a Python editor right in the browser, realistic data to work on, and a list of tasks that check themselves. Stuck? Every task has a hint, the expected result, and a solution. Go in order — later labs build on earlier ones.

  1. 01 Lab 1: Make sense of the orders A week of shop orders sits in a Python list. Count them, loop over them, filter them, and total them, one small step at a time. 9 tasks
  2. 02 Lab 2: From a messy CSV to a JSON report Read a CSV export with a broken row, skip the bad data, total the rest, and save the result as a JSON report, using only Python's built-in csv and json modules. 6 tasks