Python Script Lab

Validationeasy

Validate required fields

Scenario

A partner upload is failing validation before audience records can be ingested.

Task

Loop through the records, find missing required fields, print the bad record IDs with missing fields, and print final valid/invalid counts.

Expected output

r2r3r4r5valid:invalid:

Safety

Python runs locally in your browser against synthetic practice data. Mock APIs are used for exercises; no real partner data is sent anywhere.

loopsdictionariesmissing fieldscounters

Script editor

Python runs locally in your browser against synthetic practice data.

Loading editor...

Output

Run your code to refresh output.

Run your code to see stdout here.

Expected markers

0/6 found
r2r3r4r5valid:invalid:

Hints

0/4 shown

No hints revealed yet.

Reference solution

The reference solution is hidden until you choose to view it.

Python scripting guide

Practice complete Python scripts for AdTech support

Python Script Lab is built for writing small, complete scripts against realistic AdTech support scenarios: validate rows, chunk payloads, parse API-like responses, retry mock requests, and explain your work from the output.

What you can practice

Work through validation, troubleshooting summaries, duplicate detection, match-rate checks, nested response parsing, privacy-safe logging, chunked ingestion, and retry logic with deterministic synthetic data.

How execution works

Scripts run locally in your browser with Pyodide. Exercises use embedded data and mock API functions, so practice code can produce stdout, stderr, and runtime errors without sending partner data anywhere.

How to use the lab

Read the scenario, write the script, run it, compare expected output markers, reveal hints only when needed, and check the reference solution after you have tried your own approach.

FAQ

Does Python Script Lab run code?

Yes. Python Script Lab runs Python locally in the browser with Pyodide. It does not execute Python on the server.

Are the practice datasets real?

No. The challenge data is synthetic and designed to resemble common AdTech support tasks without exposing real users, partners, secrets, or production data.

Can scripts call real APIs?

No. The MVP blocks common network and browser escape imports and uses mock API functions for exercises. Client-side isolation is best effort, not a security boundary.

Is progress saved?

Selected challenge, drafts, hints viewed, solution-viewed flags, run counts, successful run counts, and completed challenges are saved locally in your browser.