[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

Python: Strings data type

1. Variables are not associated with data types unlike C and C++. 2. Data types however are associated with objects. 3. Variables reference to objects. This is very similar to pointers in C. fruits is the variable and apple is the object. To refer the data apple I use fruits to point to the data. … Continue reading Python: Strings data type