Network Discovery & Connectivity.
Write seven independently checked Python helpers to validate device data, select scoped targets, interpret transport results, compare DNS answers, parse command output, correlate service layers and summarize the fleet.
Real Python, no live network: Exercises execute Python against fictional device inventories, IP addresses and recorded responses in an isolated browser runtime. TCP, DNS and SSH responses are simulated inputs; these challenges do not open sockets, connect to devices, or ask for credentials. Use the separate localhost project in the lesson for a real but local TCP demonstration.
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 a network inventory export
Implement parse_targets(text). Parse a CSV string with exactly three unique headers: host, ipv4 and site (any column order). Reject malformed headers, extra/missing row fields, invalid IPv4 addresses, blank host/site and duplicate hostnames ignoring whitespace/case. Return None for any invalid input. Otherwise return a list of dictionaries with host uppercase, ipv4 canonical string, site uppercase, sorted by host; empty valid CSV returns []. Do not perform any network activity. Print the sample hostnames separated by commas.
APP-01,DB-02Try 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.
Use the shared Continue Your Learning Path panel below to mark Practice complete. Your next guided milestone is Lesson 03, IT Service Integrations. Complete this Practice milestone before moving to that lesson.
