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.12 Subprograms
Practise exam questionsSubprograms — Note 1 of 4
Reasons to split code.
Subprograms (functions and procedures) break code into reusable, named blocks. This makes programs shorter, easier to read, test, and maintain.
# Without subprogram: repeated code
print("="*20)
print("Welcome")
print("="*20)
# With subprogram: reusable
def show_header():
print("="*20)
print("Welcome")
print("="*20)
show_header()Specification notes for programming are in Paper 2.