Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
301.16 Defensive Design
Practise exam questionsDefensive Design — Note 5 of 5
Friendly feedback to users.
Good error messages tell the user what went wrong and how to fix it. They should be clear, polite, and specific — never show raw Python tracebacks to users.
mark = input("Enter mark: ")
if not mark.isdigit():
print("Please enter a whole number.")
elif int(mark) < 0 or int(mark) > 100:
print("Mark must be between 0 and 100.")
else:
print("Mark recorded: " + mark)Specification notes for programming are in Paper 2.