Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Subprograms

Procedures

301.12 Subprograms

Practise exam questions

Subprograms — Note 2 of 4

Reusable code without return.

What you need to know

A procedure is a subprogram that performs an action but does not return a value. In Python, it is defined with def and has no return statement (or returns None).

What to know

  • Defined with def name():
  • Performs an action (e.g. prints something)
  • Does not return a value
  • Call it by name: greet("Alice")

Code examples

Procedure
python
def greet(name):
    print("Hello, " + name + "!")
    print("Welcome to the quiz.")

greet("Alice")
greet("Bob")
← Previous noteWhy subprograms301.12 SubprogramsNext note →Functions301.12 Subprograms

Back to Subprograms

Specification notes for programming are in Paper 2.

Subprograms

Note 2 of 4

  1. 1Why subprograms
  2. 2Procedures
  3. 3Functions
  4. 4Scope + parameters
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).