Question: You are back to work on your bad actor IP addresses for Hulu. You are building a search portal to find the IP address based

You are back to work on your bad actor IP addresses for Hulu. You are building a search portal to find the IP address based on any user input (remember, before we had to find IP's ending in .88). You have decided to build a class that you can quickly send the search pattern to and find any matches.

A basic structure has already been created. Use the image below to start the project. You will need to complete the class, build out any functions add more if needed, and then prove that the system works. Objectives A partial code structure has been provided. Fill in the logic of the functions/class to make the functionality to search the bad IP addresses for any pattern the user enters. Instantiate a new object calling the class. The object should send the search pattern to the class via a function (ex: Dog.bark() ). The class should locate any matches in the bad IP list. The class should have a function that returns the list or prints them. Hint: You know the values you should get if you searched for "88", so try that first. You will get 88 anywhere in the IP address, though, not just the ending...

(This is a Python programming question)

You are back to work on your bad actor IP addresses for

badIP = ["10.0.0.1", "192.168.1.88", "192.168.0.88", "10.0.0.88", "172.16.1.1"] investigateIP = [] print("Bad IPs:") for ip in badIP: if ip.endswith(".88"): investigatelP.append(ip) print(investigatelP)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!