Skip to main content
PRACTICE / APPLIED PYTHON / LESSON 06

Scheduling & Controlled Automation Coding Clinic.

Write eight original Python solutions that make unattended job decisions predictable: validate inputs, calculate time windows, prepare safe plans, reject expired approvals and avoid replaying actions.

8 coding challengesReal PythonChanged-input testsNo network or device access

Know why the automation should stop. All exercises execute locally inside the site's isolated browser Python environment using synthetic records and injected approvals. No real cron jobs, Windows tasks, ticket APIs, tenant changes, device writes or OS-level locks are created. Check evaluates alternate input cases beyond the displayed example.

The optional local Python project demonstrates repeatable plan and simulation commands with eight unit tests. Do not confuse its simulated apply decision with a real change.

JOELEARNS / PYTHON WORKBENCH

Write it. Run it. Understand it.

Real Python execution, a variable trace and feedback against the requirements. You write the code—answers aren't revealed up front.

Python 3.14 · in-browser
CHALLENGE 01 / 8 · BEGINNER

Validate a bounded schedule interval

Write interval_minutes(value): accept only an integer between 5 and 1440 inclusive, returning the value, or return None for booleans, fractions, strings and out-of-range values. The scheduler calls this helper before registering a recurrence; do not silently cast a user-supplied string. Print the interval of the sample job. The checker tests minimum, maximum, malformed types and unexpected values.

EXPECTED OUTPUT15 minutes
script.py editableCtrl / Cmd + Enter to run
Your code is stored only in session storage when enabled. Never paste secrets. Clearing this option clears saved drafts, not the editor.
Code executes only when you choose Run or Check. No account needed.
HINTS · OPTIONAL

Try solving it before asking for help. Hints never show a completed program.

PYTHON OUTPUTReady

Your printed output and errors will appear here.

VARIABLE TRACER

Run the code, then step through the executed lines to watch variable values change.

About this environment: The Python runtime is loaded on demand from a version-pinned CDN and runs inside a sandboxed, opaque-origin browser frame. Runs have a time limit. OS/network automation is outside this introductory workbench. If your code calls input(), a response panel appears to supply text to those calls. Don't paste secrets or untrusted scripts.