Is it good enough? | Sololearn: Learn to code for FREE!


Is it good enough?

Hi, I made a LAN IP Validator in Python. I was wondering if I missed something or if I can simplify it... can you guys give me an indication? Thanks. code:

3/15/2021 6:09:09 PM


3 Answers

New Answer


None of the octets can be over 255.


Your code will only validate class C private networks. It will not validate class A or B networks, not even private ones. For an explanation of IPiv addresses see:


Slick oh, right... forgot about that