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

1D arrays

301.17 Arrays and Records

Practise exam questions

Arrays and Records — Note 1 of 4

Indexed list of values.

What you need to know

A 1D array (list in Python) stores multiple values in a single variable, accessed by index (e.g. scores[0]). Indices start at 0.

What to know

  • Create: scores = [85, 90, 72]
  • Access: scores[0] is 85 (first item)
  • Modify: scores[1] = 95
  • len(scores) gives the count of elements
  • Loop using index: for i in range(len(scores))

Code examples

1D array basics
python
scores = [85, 90, 72]
print(scores[0])     # 85
scores[1] = 95
for i in range(len(scores)):
    print(scores[i])
← Previous topicError messaging301.16 Defensive DesignNext note →2D arrays301.17 Arrays and Records

Back to Arrays and Records

Specification notes for programming are in Paper 2.

Arrays and Records

Note 1 of 4

  1. 11D arrays
  2. 22D arrays
  3. 3Arrays in subprograms
  4. 4Records
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).