← SC in Schools Python

print() with Highlight.

A value joined to a string with + inside print() to change the background highlight colour of the displayed text

Understanding print() with Highlight. in SC in Schools Python

What it does: This description matches Highlight., used with dot notation and a capital H. The Highlight. value sets the background colour highlighting the text. Highlight values like Highlight.yellow are written without quotation marks, using dot notation. Highlight.red is concatenated to the string using the + operator, not a comma. Only the first letter is capitalised, as in Highlight, not HIGHLIGHT. This system requires the capitalised spelling Highlight, not lowercase highlight.

Common mistakes: Highlight must start with a capital H, not lowercase highlight. Highlight values are not written in quotation marks — it should read Highlight.red.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 64–73) and word search (Modules 64–73).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Does Highlight. change the background highlight colour of the displayed text?
TrueFalse
Matches
print(highlight.red + "Warning!")
↓
Highlight should start with an uppercase H, not lowercase highlight
Applying
Meanings
Term
Highlight.yellow
Meaning
A value joined to a string with + inside print() to change the background highlight colour of the displayed text
Practice
print(Highlight.yellow + "Level up!")
Testing
Gaps
print(.yellow + "Level up!")
Check Answer
Spots
1highlight.red used in this line
2print(Highlight.blue + "Hello!")

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Horned Lizard' badge — Bug Squasher, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Does Highlight. change the background highlight colour of the displayed text?
A. True ✓
B. False
The Highlight. value sets the background colour highlighting the text.
2. Should the colour name after the dot be written in quotation marks?
A. False ✓
B. True
Highlight values like Highlight.yellow are written without quotation marks, using dot notation.
3. Should Highlight start with an uppercase or lowercase H?
A. Lowercase
B. Uppercase ✓
Highlight is written with a capital H, followed by a dot and the lowercase colour name.
4. Should Highlight.red be joined to a string with + or a comma?
A. + ✓
B. Comma
Highlight.red is concatenated to the string using the + operator, not a comma.
5. Is HIGHLIGHT written fully in uppercase valid in this system?
A. True
B. False ✓
Only the first letter is capitalised, as in Highlight, not HIGHLIGHT.

Match the Pairs

print(Highlight.yellow + "Level up!") → Displays the text with a yellow highlight
print(Highlight.red + "Warning!") → Displays the text with a red highlight
A value joined with + to a string to change its background highlight colour → Highlight.
The word after the dot specifying which highlight colour to use → Highlight.blue
print(highlight.red + "Warning!") → Highlight should start with an uppercase H, not lowercase highlight
print(Highlight."red" + "Game Over") → The colour name should not be written in quotation marks

Key Term

Highlight.yellow
A value joined to a string with + inside print() to change the background highlight colour of the displayed text

Fill in the Blanks

1. print(Highlight.yellow + "Level up!")
Hint: Type the word used before the dot to set the highlight colour
2. print(Highlight.red + "Warning!")
Hint: Type the highlight colour name for a warning message
3. print(Highlight.blue + "Great job!")
Hint: Type the highlight colour name after the dot
4. print(Highlight.gold + "Score: 100")
Hint: Type the function used to display text with a highlight
5. print(Highlight.purple + "Bye!")
Hint: Type the highlight colour name for a farewell message

Spot the Error

Question 1
A highlight.red used in this line
B print(Highlight.blue + "Hello!")
C print(Highlight.green + "Great!")
Line A — Highlight must start with a capital H, not lowercase highlight.
Question 2
A print(Highlight.gold + "Level up!")
B print(Highlight."red" + "Game Over")
C print(Highlight.green + "Success")
Line B — Highlight values are not written in quotation marks — it should read Highlight.red.
Question 3
A print(Highlight.blue + "Start")
B print(Highlight.orange + "Middle")
C print(Highlight.purple + "End"
Line C — This line is missing its closing bracket — it should read print(Highlight.purple + "End").
Question 4
A print(Highlight.yellow, "Set")
B print(Highlight.green + "Ready")
C print(Highlight.red + "Go")
Line A — Highlight and the string should be joined with +, not a comma — it should read Highlight.yellow + "Set".
Question 5
A print(Highlight.grey + "Loading...")
B print(HIGHLIGHT.red + "Error")
C print(Highlight.green + "Complete")
Line B — Only the first letter of Highlight should be capitalised — it should read Highlight.red, not HIGHLIGHT.red.

Student with a class code? Join your class →