Practice

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

available
solution.pyPython 3.12
01
02

Console Output

Run code to inspect the output.

Hint 0/3

Read the generated condition literally.

Test cases

Submission output

3 / 3 passing
CaseInputExpectedActualStatus
01["hello", "", "help"]22✓ Pass
02["", "ok"]11✓ 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

DEBUG

AI Code Detective

Find and repair a subtle mistake in generated Python.

Module 02

BUILD

Format a Prompt Payload

Use Python fundamentals to turn a conversation into a predictable prompt.

Module 03

BUILD

Find the Most Common Intent

Load tabular support data and produce a useful aggregate.

Module 04

DEBUG

Parse the AI Response

Handle a JSON response without exposing credentials.

Module 05

BUILD

Build a CLI AI Assistant

Turn user input into a useful conversational response.

Module 06

BUILD

Clean the Messy Student Dataset

Remove unusable rows and calculate trustworthy cohort summaries.

Module 07

DECISION

Tell the Story Behind the Dataset

Choose a visual form that makes an insight legible.

Module 08

DECISION

Is This Regression or Classification?

Choose an ML framing before training a model.

Module 09

BUILD

Ship a Defensible ML Project

Plan a mini-project from dataset to evaluated result.

Module 10

BUILD

Put Your ML Model Online

Connect a model function to a deployable Streamlit interface.

Module 11

DEBUG

Refactor the AI Utility

Make a growing Python helper maintainable and explicit about failures.

Module 12

BUILD

Combine Two Real-World Datasets

Join learner activity with outcomes and derive a useful feature.

Module 13

DEBUG

Why Is Your Model Lying?

Diagnose a model that performs well only on training data.

Module 14

PREDICT

Build a Tiny Digit Recognizer

Trace a neuron from pixels through weights and activation.

Module 15

BUILD

Detect the Mood of a Review

Prepare text features before comparing them with a pretrained pipeline.

Module 16

BUILD

Make the LLM Return Reliable JSON

Define and validate a response contract for an AI feature.

Module 17

EXPERIMENT

Find the Edges

Prepare an image matrix for an edge-detection step.

Module 18

BUILD

Build a Research Assistant Workflow

Choose a deterministic workflow for search, summarization, and delivery.

Module 19

BUILD

Turn the AI Feature Into a Web App

Specify the contract between a frontend and a persistent backend.

Module 20

BUILD

Ship an Evidence-Backed AI Product

Turn a larger idea into a reviewable product brief.