301.5 Concatenation and Basic Strings
Practise exam questionsConcatenation and Basic Strings — Note 3 of 3
Write user-friendly messages.
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.
print("Total:", total)\n for line breaks to organise outputstr() for clean, readable messagesname = "Alice"
score = 87
print("Student: " + name)
print("Score: " + str(score) + "/100")
if score >= 50:
print("Grade: Pass")
else:
print("Grade: Fail")Back to Concatenation and Basic Strings
Specification notes for programming are in Paper 2.