QuestionWrite a module to evaluate an IPv4 address input by the user.1. The initial “__main__” block will accept user input via an “input()” function.a. A first function will then be called with the user’s input as a single argument for evaluation. If all the four octets in the IPv4 address are between 0 and 255, then the function return “True.” Else, “False” is returned, and the user is advised that the address in “Invalid.”b. If the first test is successful, the “__main__” block calls a second function with the valid IPv4 address as argument. The second function returns the class of the IP address, per the following rule: If the IP address is: a.b.c.d, where a, b, c, d are numbers, the value of “a” will determine the class of the IP address.o if a < 128 ==> class Ao if 128 <= a <= 191 ==> Class Bo if 192 <= a <= 223 ==> Class Co if 224 <= a <= 239 ==> Class Do if 240<= a <= 255 ==> Class EComputer ScienceEngineering & TechnologyPython Programming

Order your essay today and save 20% with the discount code ESSAYHELP