← Pattern Detector projects: projects

A. Rules-based pattern detector

Open project

Build a Python app that sorts an input into groups using rules you write yourself, then responds in a way that helps someone.

Some problems can be described exactly: does the message contain this phrase? Is the soil drier than this? For those, rules are quick and predictable, and you can always say why the app answered as it did. When it is wrong, you can find the rule and fix it.

Before you start, write one sentence: who is it for, and what will it help them do?

What to hand in

  • Your app: the .py file and any data files (your dictionary or lists).
  • Your rules in plain English: a short list or a flowchart.
  • A testing record: input, expected result, what the app did, with boundary cases.
  • A reflection: what your rules can't handle, and who could be affected if your app got it wrong.

Check your app before you hand it in

  • Clear result, in words your user understands.
  • Honest: says when an input doesn't match any rule.
  • Useful response: advice, a next step or an explanation, not just a label.
  • Fits your user: at least one setting or option they can change.
  • Tested on edge cases, not just the ones you designed it for.

Ways it could look when it works

These show a finished project at about the level to aim for. Yours will be different, and that is fine.

A study method picker: sliders and choices in, steps and reasons out.
A study method picker: sliders and choices in, steps and reasons out.
A working checker: typed text in, a tick or cross for each step out.
A working checker: typed text in, a tick or cross for each step out.

You'll use

These light up when code you paste uses them. The starters already use some of them, so check the parts you wrote use them too. Click one to see where you learned it.

Where you'll work

This project runs on your own computer, not in this page.

Optional: paste your code to light up the skills it usesNothing is sent anywhere. It stays in this browser, and Download my code saves it.

Milestones

Tick each one when it is true of your project. Nobody marks it: be honest with yourself.

Make it yours

Looking back

Tick every milestone first.

Pattern Detector projects · project badge

★ A. Rules-based pattern detector

Built with

Milestones

The hardest part