You have the if structure backwards. If the character is not in the first if clause then its not going to be in any of the other ones either because the first one has all of the options listed in it from the elif's. So it will either execute the first if clause or the else clause, but never the elif's.
also there is no point in checking it twice. So if you started the if structure with:
also there is no point in checking it twice. So if you started the if structure with:
if '=' not in year:Then the second one
elif '=' not in month:because it would not be in year and month if it is not in year. So thus you only have to check for month.
Recommended Tutorials: