How to sort the month with year in python?

Viewed 7

I have list a.

a = ['September22','August21','August22']

I want to sort this list as follows:

a = ['August21','August22','September22']

How to do that?

0 Answers
Related