Python for Kids · Class 9 · Module 7 of 9

Web App Foundations

Same Python. New audience: anyone with a browser.

8 sessionsSessions 49–56
4 weeksTypical pace
Intermediate to AppliedLevel
Class 9Python & Coding
A browser window showing a multi-page web application
The big idea

A web framework maps URLs to Python functions. Students build routes, render templates with real data and accept form submissions — with the firm rule that everything a user sends must be validated.

Why it matters

A web app is shareable. That single fact changes how seriously students treat their own projects.

Unpacked

What you will actually learn

Three core ideas, each taught with worked examples and then practised until it feels obvious.

01

Routes and templates

Routes connect a URL to a function. Visiting /scores runs the function that returns the scores page.

02

Forms

Templates are HTML with placeholders that Python fills in, keeping design and logic separate rather than tangled together.

03

Validation

Forms and validation: a form sends data to your server, and your server must never trust it. Check type, length and range before use.

Did you know?

Flask, the framework most schools start with, was released on 1 April 2010 as a joke. The joke turned out to be genuinely excellent software.

Common mix-up

“Checking in the browser is enough.” Browser checks are for convenience. Anyone can bypass them, so the server must check again.

Session by session

Your 8-session journey

Sessions 4956 of the 72-session year, at two one-hour sessions per week.

  1. 1

    Warm-up and big picture

    Where this module fits, what you will build, and a hands-on starter that gets everyone curious about routes and templates.

  2. 2

    Routes and templates

    Guided teaching on routes and templates, worked through together with the teacher.

  3. 3

    Routes and templates — practice lab

    Independent practice, small challenges and one deliberate mistake to diagnose.

  4. 4

    Forms

    Guided teaching on forms, building directly on the previous two sessions.

  5. 5

    Forms — practice lab

    Applied tasks that combine routes and templates and forms in one piece of work.

  6. 6

    Validation

    Validation introduced and practised, completing the toolkit needed for the project.

  7. 7

    Project build

    Guided build session for the module project: Simple interactive web tool.

  8. 8

    Test, present and reflect

    Finish, test against the checklist, present the work and explain the decisions behind it.

Project lab

Simple interactive web tool

Every module ends with something the student built themselves and can demonstrate. This is the piece that goes into their portfolio and gets explained out loud at the end of session 56.

Try this at home

Build a two-page web tool with a form, then open it on your phone using your computer’s local network address.

It is finished when

  • It works from start to finish without breaking
  • You can explain every part of it in your own words
  • You tested it and improved at least one thing afterwards
  • Someone else used or understood it without your help

By the end of this module

Students finishing Module 7 can:

  • Explain and use routes and templates without prompting
  • Explain and use forms without prompting
  • Explain and use validation without prompting
  • Build and finish simple interactive web tool
  • Test your own work and correct what you find
  • Talk an adult through what you made and why

Word bank

The vocabulary introduced here, in plain language:

route
A URL path mapped to a function.
template
An HTML file with slots for dynamic values.
server-side
Code that runs on the server, not the browser.
Module challenge

Think you have got this?

0 XPLevel 1 · Curious Beginner

6 quick questions drawn from this module — vocabulary, the project you build, and a myth-or-fact round. Every wrong answer explains itself, so a mistake still teaches you something.

🎯 6 questions⚡ Up to 80 XP

Your child's free trial is one message away.

Tell us your child’s class and what they enjoy. We will suggest the closest program fit—no pressure and no upfront payment.