[Solved] when this code prints it has a 0. how do I get it to print without it?
month_name‘ “helpfully” pads the list with an empty string so that the list indices match up with the normal 1-based counting of the months. To work around this, I would slice the list and enumerate it with an explicit starting point of 1. for i, m in enumerate(calendar.month_name[1:], 1): Another, more cumbersome but possibly useful, … Read more