I have a list of string like this:
a = ["part 1", "part 3" , "part 10", "part 2"....]
If I sort them and print, sorted[a]
the result is
["part 1", "part 10", "part 2", "part 3"]
But I want to sort them as:
["part 1", "part 2", "part 3", "part 10"]
by the numeric value in each string. How can I implement that? Thanks