Revise Computingrevisecomputing.co.uk
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates

Knowledge organisers / Concatenation and Basic Strings

Readable output

All topicsPractise exam questions
Knowledge organiser

Concatenation and Basic Strings

301.5c

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.

Key points

  • 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")