Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Concatenation and Basic Strings

Readable output

301.5 Concatenation and Basic Strings

Practise exam questions

Concatenation and Basic Strings — Note 3 of 3

Write user-friendly messages.

What you need to know

Good output includes labels and context so the user understands what the values mean. Never just print a bare number — always explain what it represents.

What to know

  • Add labels: print("Total:", total)
  • Include units where appropriate
  • Use \n for line breaks to organise output
  • Use concatenation with str() for clean, readable messages

Code examples

Readable output
python
name = "Alice"
score = 87
print("Student: " + name)
print("Score: " + str(score) + "/100")
if score >= 50:
    print("Grade: Pass")
else:
    print("Grade: Fail")
← Previous noteStrings + Numbers301.5 Concatenation and Basic StringsNext topic →Input basics301.6 Input

Back to Concatenation and Basic Strings

Specification notes for programming are in Paper 2.

Concatenation and Basic Strings

Note 3 of 3

  1. 1String concatenation
  2. 2Strings + Numbers
  3. 3Readable output
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).