I have two dates I'm trying to compare in this format: `a = '10.2022'` (october 2022) and `b = '02.2023'` (February 2023)

When I enter a > b I expect to have False

Here is my code:

```
import datetime

a = '10-2022' # String date
b = '02-2023' # String date

date_format = '%m.%Y'

a = datetime.datetime.strptime(master_list[0][1], '%m-%Y').strftime(date_format)

b = datetime.datetime.strptime(master_list[0][2], '%m-%Y').strftime(date_format)

```

So I have `a = '10.2022 '` and `b = '02.2023'`.

`a > b` returns True which is not correct because Oct 2022 is obviously before Feb 2023. Not sure what's not working