Read an IPv4 CIDR like 192.168.1.0/24 and print the number of usable host addresses.
Use the standard library `ipaddress` module. The number of usable hosts is `network.num_addresses - 2` (subtracting the network + broadcast address) for any /24-or-bigger subnet.
For our test, `192.168.1.0/24` → `254`.
Sign in to save your code and track progress across devices.