← SC in Schools Python

print() with Colour.

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

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

What it does: This description matches Colour., used with dot notation and a capital C. The Colour. value sets the colour that the text is displayed in. Colour values like Colour.red are written without quotation marks, using dot notation. Colour.red is concatenated to the string using the + operator, not a comma. Only the first letter is capitalised, as in Colour, not COLOUR. This line uses Colour.green to display the text in green. This system requires the capitalised spelling Colour, not lowercase colour.

Common mistakes: Colour must start with a capital C, not lowercase colour. Colour values are not written in quotation marks — it should read Colour.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 Colour. change the colour of the displayed text?
TrueFalse
Matches
print(colour.red + "Warning!")
↓
Colour should start with an uppercase C, not lowercase colour
Applying
Meanings
Term
Colour.red
Meaning
A value joined to a string with + inside print() to change the colour of the displayed text
Practice
print(Colour.green + "Level up!")
Testing
Gaps
print(.green + "Level up!")
Check Answer
Spots
1colour.red used in this line
2print(Colour.blue + "Hello!")

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

The 'Barreleye Fish' badge — Clear Vision, 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 Colour. change the colour of the displayed text?
A. True ✓
B. False
The Colour. value sets the colour that the text is displayed in.
2. Should the colour name after the dot be written in quotation marks?
A. False ✓
B. True
Colour values like Colour.red are written without quotation marks, using dot notation.
3. Should Colour start with an uppercase or lowercase C?
A. Lowercase
B. Uppercase ✓
Colour is written with a capital C, followed by a dot and the lowercase colour name.
4. Should Colour.red be joined to a string with + or a comma?
A. + ✓
B. Comma
Colour.red is concatenated to the string using the + operator, not a comma.
5. Is COLOUR written fully in uppercase valid in this system?
A. True
B. False ✓
Only the first letter is capitalised, as in Colour, not COLOUR.

Match the Pairs

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

Key Term

Colour.red
A value joined to a string with + inside print() to change the colour of the displayed text

Fill in the Blanks

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

Spot the Error

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

Student with a class code? Join your class →