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.

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

ELIF chains

301.9 Selection

Practise exam questions

Selection — Note 2 of 4

Multi-branch decision making.

What you need to know

elif (else if) lets you check multiple conditions in sequence. Python checks each one top-to-bottom and runs the first branch that is True, then skips the rest.

What to know

  • elif adds extra conditions after if
  • Checked top-to-bottom — first True wins
  • else at the end catches everything not matched
  • Order matters — put the most specific condition first

Code examples

ELIF chain
python
score = int(input("Score: "))
if score >= 90:
    print("A")
elif score >= 70:
    print("B")
elif score >= 50:
    print("C")
else:
    print("Fail")
← Previous noteIF and Else301.9 SelectionNext note →Nested IF301.9 Selection

Back to Selection

Specification notes for programming are in Paper 2.

Selection

Note 2 of 4

  1. 1IF and Else
  2. 2ELIF chains
  3. 3Nested IF
  4. 4Match Case
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

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