Skip to content
Zakaria Lahgaz
All work

Case study

Learning Platform

A private course platform where learners run Python in the browser and get feedback after each exercise.

Role
Personal project
When
2026
Stack
Next.js · TypeScript · Supabase · Pyodide

The problem

A programming lesson needs a way for learners to try an idea and see where it breaks. The platform brings the video, exercise and test results together in one place.

Key decisions

  • Run Python in the browser

    Pyodide lets learners attempt an exercise without installing Python. Each test starts with a clean Python state so earlier attempts cannot affect the result.

  • Grade the behavior an exercise asks for

    Some exercises ask learners to print an answer. Others ask them to return a value. The grader checks each kind separately, ignoring trailing whitespace in printed output and key order in dictionaries.

Result

Learners can run a submission, see the expected and actual results for a visible test, and revise their code in the same lesson.