Question: In this assignment you are asked to write a Python program to extend a built-in class st by creating its derived class called IntegerList. Specifically,
In this assignment you are asked to write a Python program to extend a built-in class st by creating its derived class called IntegerList. Specifically, the derived class IntegerList define four methods that check if the s is valid, find the largest element in the list, find the smallest element in the list and print the list respectively The IntegerList' class should have, at minimum, the following methods Method Name Output/ Attributes Returns Input Purpose Iterates through the list and s if l the elements are integers using isinstance method. Return eror validIntList Returns an error message and self and False or False only if any element/s is not an integer, otherwise returns True True and None and None hecks if list is valid using validIntList method and only then finds the largest integer in e list. If the list is invalid return None, otherwise find max and maxInt self max/None return max hecks if list is valid using validIntList method and only minlnt then finds the largest integer in min/None e list. If the list is invalid return None, otherwise find min and return min Checks if ist is valid using rintIntList validIntList method and only selt Print List or pten prints the list. If the list is error invalid print error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
