[python]Extension to validate ip address

On previous post I have written a sample code to validate ip address using the ipaddress module. The sample code is further extended to check for subnets. Algorithm 1. Get user's ip_address. 2. IF ip_address does not have '/' or ip_address has '/32' THEN use ipaddress.ip_address() ELSE use ipaddress.ip_network() THEN tell user the ip address … Continue reading [python]Extension to validate ip address