well, you have line33 where you iterate over months as integers from range(1,13), but after that you have line37 where you use variable
Actually you iterate 4*12 times over elements of
Fix lines 32-37
month
to iterate over list months
. all elements in list months are str, what you expect to happen? :-) Of course it will raise TypeError...Actually you iterate 4*12 times over elements of
years
list and months
list because of lines 32-33Fix lines 32-37