Skip to Main Content
Python Programming: A modular approach
book

Python Programming: A modular approach

by Kumar Naveen, Taneja Sheetal
January 2017
Intermediate to advanced content levelIntermediate to advanced
606 pages
14h 1m
English
Pearson Education India
Content preview from Python Programming: A modular approach

CHAPTER 12

LIST MANIPULATION

CHAPTER OUTLINE

12.1 Sorting

12.2 Searching

12.3 A Case Study

12.4 More on Sorting

In several applications, we need to sort data or search for some item of interest in the given data. For example, we may be required to arrange the answer sheets in the order of roll number, to arrange the student data on the basis of marks, to search for a phone number in a telephone directory, or to find an answer sheet with a given roll number. We already know that given the roll number of a student, it is easier to find his/her answer sheet if the answer sheets are arranged according to roll number. Similarly, it is easier to find how many students have secured pass marks, if the answer sheets are arranged according to marks. The ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modular Programming with Python

Modular Programming with Python

Erik Westra
Python Programming Blueprints

Python Programming Blueprints

Daniel Furtado, Marcus Pennington

Publisher Resources

ISBN: 9789352866038