Sorting a mix of letters and numbers in Python

Published: 20 February 2024
on channel: Python and Pandas with Reuven Lerner
816
28

It's easy to sort numbers in Python, and even to sort strings -- but what if you have a mix of the two? This question came up in corporate training that I did yesterday, and I decided to review the answer here, using a combination of strings, lists, tuples, and list comprehensions.

Jupyter notebooks from this video, and all of my videos, are at https://github.com/reuven/youTube-not... .


Watch video Sorting a mix of letters and numbers in Python online, duration hours minute second in high quality that is uploaded to the channel Python and Pandas with Reuven Lerner 20 February 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 816 times and liked it 28 visitors.