vendredi 30 juin 2017

Python 2.7: if-else condition to find any ip address from range 10.0.0.1 to 10.255.255.255

i want to write a program in python such as

x='10.0.1.2' or any ip address from range 10.0.0.1-10.255.255.255

if(x==any ip address range from 10.0.0.1-10.255.255.255): //do task A else: //do task B

Aucun commentaire:

Enregistrer un commentaire