• + 0 comments

    I found a lot more than 5 errors here. When I got my output to match the expected output but it still got marked the wrong answer, I knew something was up. I copied the code to my own Idle editor in python and tried to run it there. The most glaring problem is the given code violates python's name space rules. The storeMonth() function doesn't return that list of months to the calling function; hence, month is undefined in the calling function. According to the instructions adding and removing lines is not allowed, though. Ok... So, I made the necesarry adjustments to get it to run in Idle, corrected 5 typoes and got it to return the correct answer. Phew. Debugging someone else's code is never fun, but when the target I'm aiming for needs to include python syntax errors, that's crazy!