You are given the base class, DigitalResource, which represe…

You are given the base class, DigitalResource, which represents a generic digital resource in a library. Create a child class, EBook, that extends the functionality of DigitalResource. Create a Child Class EBook: Implement a child class, EBook, that inherits from DigitalResource. EBook should add an additional attribute, file_format (e.g., “PDF”, “EPUB”, “MOBI”). Ensure that the child class’s constructor calls the parent class’s constructor using super(). Override the get_details Method: Override the get_details method in EBook to include the file_format in the output. # Given class DigitalResource: def __init__(self, title, author): self.title = title self.author = author def get_details(self): return f”Title: {self.title}, Author: {self.author}”      

In IT, system logs are important in monitoring and troublesh…

In IT, system logs are important in monitoring and troubleshooting. Extend the list class by creating a custom class LogList that manages a collection of log entries, where each entry is a string. Create a Child Class LogList: Inherit from list to create the new class LogList. There is not need to include a constructor statement. Implement the find_entries Method: Add a method, find_entries, that accepts a single parameter, keyword. This method should iterate over the list of log entries and return a new LogList instance containing only the entries that include the keyword. Hint: You can check if a keyword is in a string using the syntax keyword in entry, where keyword and entry are both strings. Example Usage: Although example usage is provided for clarity, you do not need to demonstrate its usage. # Creating an instance of LogList with sample log entries logs = LogList() # Finding entries that contain the keyword “Error” error_logs = logs.find_entries(“Error”) print(error_logs) # Expected output: