Automation Projects & Git Workflows.
Five independent Python challenges: validate a device record, preserve uncertainty in probe responses, reject unsafe plans, check exact authorizations, and summarize operational evidence.
Real Python, fictional operations: This isolated browser workbench tests your own functions and does not contact any device or use real credentials. The separate local Git exercise belongs in the written lesson.
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.
Validate one operational target
Write normalized_target(row). Accept only dictionaries with exactly the keys host, ipv4, and team. All three values must be nonempty strings after trimming; ipv4 must parse as an IPv4 address with ipaddress.ip_address. Return a NEW dict with uppercase trimmed host, canonical ipv4 and lowercase trimmed team. Return None for malformed input, IPv6, missing/extra fields or wrong types. Do not alter the input row. Print the host for the fictional sample.
APP-01Try 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.
When you have completed the challenges, use the shared Continue Your Learning Path panel below to mark Practice complete and continue to Lesson 02.
