BuildJuniorBackendAuto-graded
Fix signup validators that accept the wrong inputs
Thoroughness against the messy things real people type is the target: spaces, accents, odd dates, foreign phone numbers.validators.py holds the backend validators for a signup and profile form — email, phone, password, username, date. Each returns accept or reject, and each passes the obvious cases in review. Then real traffic arrives: an email pasted with a trailing space, a None from a form library for an empty field, a +tag Gmail address, an international phone number. Make the validators handle what users actually send, without starting to accept things they should refuse.30 min
python
What it measures
PythonWriting input handling that survives the messy values a real form sends, including the absent one.
Test case designEnumerating the edge cases that separate a validator which passes review from one that survives production.
Balanced judgementWidening acceptance for valid real-world input without quietly letting invalid input through — the trade at the heart of validation.
Your environment
Terminal + editorA full shell in the browser
Claude CodePre-authenticated, no key setup
Isolated microVMYours alone, wiped afterwards
Start this lab
30 min
Start labYou'll sign in to Anthropos to start. The lab opens in a private cloud workspace with Claude Code ready to use.AI Labs is part of Anthropos Workforce. Not on your plan yet? Book a demo