Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 11: Mastering List Operations, Iteration, and Comprehensions!

Instruction

Sorting

Ordering elements in a sequence is often useful. Sorting is the task of arranging elements in a sequence in ascending or descending order.

Sorting can work on numerical or non-numerical data. When ordering text, dictionary order is used. For example, "bat" comes before "cat" because "b" comes before "c".

Concepts in Practice: Sorting

  1. What would be the last element of the...