What is class E?
IP addresses belonging to class E are reserved for experimental and research purposes. IP addresses of class E range from 240.0.0.0 – 255.255.255.254. This class doesn’t have any sub-net mask. The higher-order bits of the first octet of class E is always set to 1111.
Input : 10.0.0.1 Output : Not Reserved Input : 241.0.0.133 Output : Reserved
To implement it, we will use the is_reserved method of ipaddress module of Python3.3.
Not Reserved Reserved
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.