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.13 Testing
Practise exam questionsTesting — Note 6 of 6
Find and fix logic errors.
Debugging is the process of finding and fixing errors. Syntax errors are caught by Python, but logic errors produce wrong results and must be found by testing and tracing.
print() statements to check variable valuesdef average(a, b):
total = a + b
print("DEBUG: total=" + str(total)) # temporary
avg = total / 2
return avg
print(average(10, 20)) # DEBUG: total=30 → 15.0Specification notes for programming are in Paper 2.