Python: Take your searching and sorting functions and put them into a class. The constructor should take a list as a parameter use the classes sort method and store the sorted list in a class...


Python:


Take your searching and sorting functions and put them into a class.



  • The constructor should take a list as a parameter use the classes sort method and store the sorted list in a class property.

  • A "search" method should return true or false if the item is found.

  • A "count" method should return 0 or the number of times the item is found.

  • For fun, you can create a method to generate a list of random numbers (and then sort it).



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here