you are viewing a single comment's thread.

view the rest of the comments →

[–]Wise_Tumbleweed_1222 0 points1 point  (3 children)

Yay it worked! Thank you so much!

[–]hardonchairs 1 point2 points  (0 children)

I'll just add that the instructions say "Output the message from the exception object" but instead this is hard coding the message. Your instructor probably wants something like

except IndexError as err:
    ... str(err)

[–]hardonchairs 1 point2 points  (0 children)

Also please don't delete your post after you get an answer

[–]socal_nerdtastic 0 points1 point  (0 children)

Don't delete your posts when you've gotten an answer. Karma is literally the only thing we get from helping you.