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 1 of 5
Predict invalid input.
Defensive design means writing code that handles unexpected or invalid input gracefully instead of crashing (e.g. wrapping int(input(...)) in try/except). Always assume the user will make mistakes.
# Without defence — crashes on bad input
age = int(input("Age: ")) # Crashes if user types "abc"
# With defence
try:
age = int(input("Age: "))
except ValueError:
print("Please enter a number")Specification notes for programming are in Paper 2.