# sorting easy

sorted() to the Rescue

You've bubbled, selected, and inserted — now meet the magic word that does it all. ✨

You get a list of nums. Sort it with Python's built-in sorted() and print the result, comma-separated. Enjoy this one. You've earned it.

Example:

Input: nums = [31, 4, 15, 9, 2] Output: 2,4,9,15,31

sorted(nums) rearranges everything from smallest to biggest in one call.

💡 need a hint?

sort-sorted-rescue.py🔒 given lines are locked — write your code in between
loading...