Tag Archives: python variables

[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 … Continue reading

Posted in Python, Scripting | Tagged , , , | Leave a comment

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 … Continue reading

Posted in Python, Scripting | Tagged , , , , | Leave a comment