IT Automation Coding Clinic.
Apply your Python skills to six simulated IT tasks. No network connection, account, credentials or external devices are required.
Think like a technician: Make decisions based on status and evidence, reject malformed rows, return predictable results, and test boundaries. Each code challenge runs in the isolated browser Python environment.
Review the lesson →Write it. Run it. Understand it.
Use offline API fixtures, data validation, log evidence and assertions to build reliable read-only IT workflows.
Classify simulated API responses
Write classify_response(status_code) for a fictional API: 200 returns 'ok'; 401 returns 'authenticate'; 403 returns 'forbidden'; codes 500 or higher return 'server_error'; all other statuses return 'review'. Call it for 200, 401, 403, 503 and 404. Print exactly 'ok,authenticate,forbidden,server_error,review'. Do not send requests.
ok,authenticate,forbidden,server_error,reviewTry solving it before asking for help. Hints never show a completed program.
Your printed output and errors will appear here.
Run the code, then step through the executed lines to watch variable values change.
