Translations:Manual:Interwiki/Page display title/en

Manual:Interwiki Special:MyLanguage/ IP=input("Enter an IP : ") IP=IP.split(".") if len(IP) != 4 : print("Input is not an IP") else : first=IP[0] second=IP[1] third=IP[2] fourth=IP[3] if first.isdigit and second.isdigit and third.isdigit and fourth.isdigit: if int(first) <=255 and int(second)<=255 and int(third)<=255 and int(fourth)<=255 : if int(first) ==10: print("Given IP is private & of Class-A") elif int(first)==172 and (int(second)>=16 and int(second)<=31): print("Given IP is private & of Class-B") elif int(first)==192 and int(second)==168: print("Given IP is Private & of class-C") else: print("Given IP is a PUBLIC IP") else: print("Not a valid IP, as one of the octet is >255") else: print("Not a valid Input, as one of the input is non-digit ") input("\n\n\t\tpress enter to exit 50.40.224.170
 * 1) IP Class identification