Question: python plz. template here: https://drive.google.com/open?id=156MBtbCyA-blprkmZLW6fiFJjC2qGs_L 3: Complete the definition of the class OddList that is a subclass of list, of which a partial definition can

python plz.
template here:
https://drive.google.com/open?id=156MBtbCyA-blprkmZLW6fiFJjC2qGs_L
3: Complete the definition of the class OddList that is a subclass of list, of which a partial definition can be found in the template file posted to D2L. The class behaves just like an ordinary list except that it only prints the items in the odd-numbered (e.g. 1,3, 5,...) indices. To do this you will need to write the OddListlterator class which has two methods: a. n that initializes the list to be printed and the first index to be printed appropriately b. nextthat determines and returns the next item in the list, updating the variables of the class as needed The following shows how the OddList class could be used: >>>o OddList () >>> o. append (2) >>> o.append (3) >>> o.append (4) >>for item in o print (item) 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
