I posted this question 6 months ago and I am not sure why it deserves a negative score. It appears that my question was already answered by this one, but I know that before posting a question, I usually look for an answer, but apparently didn't find the one suggested here. I believe that it is because my research was not formulated in a way that was close to that particular question's title, and therefore it didn't appear in the search results.
That being said, how can I improve my question now, to make it more acceptable, and maybe bring it back to at least a score of 0?
'<' not supported between instances of 'int' and 'str'
) and the fact that you've found converting the input toint
fixes it, it seems like you have all the pieces to put it together. In the first edit you refer to ayear
function you don't show, which is also confusing.