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

0

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: https://code.sololearn.com/cA8A20a17a3A

3/15/2021 6:09:09 PM

Yahel

3 Answers

New Answer

+2

None of the octets can be over 255.

+1

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: https://en.wikipedia.org/wiki/IP_address

0

Slick oh, right... forgot about that