toggle navbar
Runestone Logo
Foundations of Python Programming
Social
Runestone in social media:
Follow @iRunestone
Help support us:
Search
Table of Contents
Book Index
User
Practice
Change Course
Join a Study Group
Group Schedule
Schedule New Chapter
Manage Group
Instructor's Page
Progress Page
Edit Profile
Change Password
Register
Login
Scratch Activecode
Help
Navigation Help
Help for Instructors
About Runestone
Report A Problem
Chapters
Preface
1. General Introduction
2. Variables, Statements, and Expressions
3. Debugging
4. Python Modules
5. Python Turtle
6. Sequences
7. Iteration
8. Conditionals
9. Transforming Sequences
10. Files
11. Dictionaries
12. Functions
13. Tuple Packing and Unpacking
14. More About Iteration
15. Advanced Functions
16. Sorting
17. Nested Data and Nested Iteration
18. Test Cases
19. Exceptions
20. Defining your own Classes
21. Building Programs
22. Inheritance
23. More on Accumulation: Map, Filter, List Comprehension, and Zip
Acknowledgements
Copyright Notice
Foreword
Contributor List
GNU Free Documentation License
ADDENDUM: How to use this License for your documents
16. Sorting
ΒΆ
Sorting
16.1. Introduction: Sorting with Sort and Sorted
16.2. Optional reverse parameter
16.3. Optional key parameter
16.4. Sorting a Dictionary
16.5. Breaking Ties: Second Sorting
16.6. π©βπ» When to use a Lambda Expression
16.7. Glossary
16.8. Exercises
16.9. Chapter Assessment
Next Section - 16.1. Introduction: Sorting with Sort and Sorted