Practice · Module 01
AI Code Detective
Concept: AI-generated code review · Est. Time: ~15 mins · Difficulty: Beginner
Code Editor · Module 3.1
AI Code Detective
Console Output
Run code to inspect the output.
Hint 0/3
Read the generated condition literally.
Test cases
Submission output
| Case | Input | Expected | Actual | Status |
|---|---|---|---|---|
| 01 | ["hello", "", "help"] | 2 | 2 | ✓ Pass |
| 02 | ["", "ok"] | 1 | 1 | ✓ Pass |
AI review
Ready when you are
AI recommends review because…
Your third test exposes a pattern that is more useful to study than a perfect score.
Challenge library
One build per module
Module 01
DEBUGAI Code Detective
Find and repair a subtle mistake in generated Python.
Module 02
BUILDFormat a Prompt Payload
Use Python fundamentals to turn a conversation into a predictable prompt.
Module 03
BUILDFind the Most Common Intent
Load tabular support data and produce a useful aggregate.
Module 04
DEBUGParse the AI Response
Handle a JSON response without exposing credentials.
Module 05
BUILDBuild a CLI AI Assistant
Turn user input into a useful conversational response.
Module 06
BUILDClean the Messy Student Dataset
Remove unusable rows and calculate trustworthy cohort summaries.
Module 07
DECISIONTell the Story Behind the Dataset
Choose a visual form that makes an insight legible.
Module 08
DECISIONIs This Regression or Classification?
Choose an ML framing before training a model.
Module 09
BUILDShip a Defensible ML Project
Plan a mini-project from dataset to evaluated result.
Module 10
BUILDPut Your ML Model Online
Connect a model function to a deployable Streamlit interface.
Module 11
DEBUGRefactor the AI Utility
Make a growing Python helper maintainable and explicit about failures.
Module 12
BUILDCombine Two Real-World Datasets
Join learner activity with outcomes and derive a useful feature.
Module 13
DEBUGWhy Is Your Model Lying?
Diagnose a model that performs well only on training data.
Module 14
PREDICTBuild a Tiny Digit Recognizer
Trace a neuron from pixels through weights and activation.
Module 15
BUILDDetect the Mood of a Review
Prepare text features before comparing them with a pretrained pipeline.
Module 16
BUILDMake the LLM Return Reliable JSON
Define and validate a response contract for an AI feature.
Module 17
EXPERIMENTFind the Edges
Prepare an image matrix for an edge-detection step.
Module 18
BUILDBuild a Research Assistant Workflow
Choose a deterministic workflow for search, summarization, and delivery.
Module 19
BUILDTurn the AI Feature Into a Web App
Specify the contract between a frontend and a persistent backend.
Module 20
BUILDShip an Evidence-Backed AI Product
Turn a larger idea into a reviewable product brief.