Mar-28-2020, 09:38 AM
You're checking whether
month
is equal to the dictionary monthConversions
, which will obviously never be True
- values of different types are never equal. What comparison do you actually want? Do you want to check whether the input exists as a key in the dict, or something else?