1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Developers

Connected

Exercise

Sorting lists

Your food delivery platform is expanding as new restaurants join daily. You have a restaurants list with restaurant names and a cooking_times list showing average meal preparation times in minutes. Your team needs both lists sorted to identify top-performing restaurants and improve delivery logistics.

Let's use another built-in function to handle this request.

Instructions

100 XP
  • Sort restaurants alphabetically, saving as restaurants_sorted.
  • Sort cooking_times from fastest to slowest, saving as cooking_times_sorted.