Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Great little exercise. I was able to do it in two lines (excluding the first line).my_list = ['a2', 'b3', 'c4', 'a5', 'b12', 'c1', 'a11', 'b10', 'c14']seperated = [(item[0], int(item[1:])) for item in my_list]sorted(seperated)
Excellent!
Great little exercise. I was able to do it in two lines (excluding the first line).
my_list = ['a2', 'b3', 'c4', 'a5', 'b12', 'c1', 'a11', 'b10', 'c14']
seperated = [(item[0], int(item[1:])) for item in my_list]
sorted(seperated)
Excellent!