Mar-29-2020, 12:08 PM
(Mar-28-2020, 09:38 AM)ndc85430 Wrote: You're checking whethermonth
is equal to the dictionarymonthConversions
, which will obviously never beTrue
- 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?
hi thanks for the response.
I need the output to be January when I input Jan
if I input anything else it should be "Wrong Value"
In my case when I enter Jan im getting wrong value despite of Jan : January being available in the list.