I found this exercise easy enough... or at least part 1. That part of the code ran first shot - how ever problems arose when I tried implementing the second part. For some reason, it would run for me when I tried it in the python shell yet it failed the majority of the auto-testers. I know my error was in the way I implemented the return statement and how it caught the wrong exception due to the inheritance of other Exceptions. Time to read up on inheritance...
No comments:
Post a Comment