Question: (Python 3.4) 8.18 Develop a class myList that is a subclass of the built-in list class. The only difference between myList and list is that
(Python 3.4)
8.18 Develop a class myList that is a subclass of the built-in list class. The only difference between myList and list is that the sort method is overridden. myList containers should behave just like regular lists, except as shown next:
>>> x = myList([1, 2, 3])
>>> x[1, 2, 3] >>> x.reverse()
>>> x
[3, 2, 1] >>> x[2]
1 >>> x.sort() You wish...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
