Working with Data Clinic.
Nine real Python challenges: clean status strings, update a list, handle optional attributes, filter devices, deduplicate sites and produce a health report.
How this clinic works: Read the scenario, modify the starter code, then run it to inspect the output and variable trace. Use Check to verify your results. No live systems are involved.
Review Working with Data →Write it. Run it. Understand it.
Clean, combine and report on real Python collections. Write a transformation and verify it.
Normalize a device status
The fictitious inventory returned a whitespace-padded mixed-case status. Normalize it to lowercase 'offline', store the result in clean_status and print exactly 'offline'. Do not replace the raw value itself.
offlineTry 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.
