I advise to be specific about errors. You don't want silence all errors in your code. You want to handle only errors arising from user input which can't be converted to int. So my suggestion to change row 15 to this:
You should explicitly silence one error, not all errors.
Out of curiosity - what is wording of assignment 5.2?
except ValueError:From The Zen of Python:
Quote:Errors should never pass silently.
Unless explicitly silenced.
You should explicitly silence one error, not all errors.
Out of curiosity - what is wording of assignment 5.2?
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.