← SC in Schools Python

print() with Style.

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

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

What it does: This description matches Style., used with dot notation and a capital S. The Style. value sets how the text is styled, such as bold or italic. Style values like Style.bold are written without quotation marks, using dot notation. Only the first letter is capitalised, as in Style, not STYLE. This system requires the capitalised spelling Style, not lowercase style.

Common mistakes: Style must start with a capital S, not lowercase style. Style values are not written in quotation marks — it should read Style.italic.

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 Style. change the text style of the displayed text?
TrueFalse
Matches
print(style.bold + "Warning!")
↓
Style should start with an uppercase S, not lowercase style
Applying
Meanings
Term
Style.bold
Meaning
A value joined to a string with + inside print() to change the text style of the displayed text
Practice
print(Style.bold + "Level up!")
Testing
Gaps
print(.bold + "Level up!")
Check Answer
Spots
1style.bold used in this line
2print(Style.italic + "Hello!")

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

The 'Manta Ray' badge — Graceful Coder, 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 Style. change the text style of the displayed text?
A. True ✓
B. False
The Style. value sets how the text is styled, such as bold or italic.
2. Should the style name after the dot be written in quotation marks?
A. True
B. False ✓
Style values like Style.bold are written without quotation marks, using dot notation.
3. Should Style start with an uppercase or lowercase S?
A. Uppercase ✓
B. Lowercase
Style is written with a capital S, followed by a dot and the lowercase style name.
4. Should Style.bold be joined to a string with + or a comma?
A. Comma
B. + ✓
Style.bold is concatenated to the string using the + operator, not a comma.
5. Is STYLE written fully in uppercase valid in this system?
A. False ✓
B. True
Only the first letter is capitalised, as in Style, not STYLE.

Match the Pairs

print(Style.bold + "Level up!") → Displays the text in bold
print(Style.italic + "Warning!") → Displays the text in italics
A value joined with + to a string to change its text style → Style.
The word after the dot specifying which style to use → Style.underline
print(style.bold + "Warning!") → Style should start with an uppercase S, not lowercase style
print(Style."italic" + "Game Over") → The style name should not be written in quotation marks

Key Term

Style.bold
A value joined to a string with + inside print() to change the text style of the displayed text

Fill in the Blanks

1. print(Style.bold + "Level up!")
Hint: Type the word used before the dot to set the text style
2. print(Style.italic + "Warning!")
Hint: Type the style name for slanted text
3. print(Style.bold + "Great job!")
Hint: Type the style name for thicker, heavier text
4. print(Style.underline + "Score: 100")
Hint: Type the function used to display text with a style
5. print(Style.underline + "Bye!")
Hint: Type the style name for text with a line beneath it

Spot the Error

Question 1
A style.bold used in this line
B print(Style.italic + "Hello!")
C print(Style.underline + "Great!")
Line A — Style must start with a capital S, not lowercase style.
Question 2
A print(Style.bold + "Level up!")
B print(Style."italic" + "Game Over")
C print(Style.underline + "Success")
Line B — Style values are not written in quotation marks — it should read Style.italic.
Question 3
A print(Style.bold + "Start")
B print(Style.italic + "Middle")
C print(Style.underline + "End"
Line C — This line is missing its closing bracket — it should read print(Style.underline + "End").
Question 4
A print(Style.bold, "Set")
B print(Style.italic + "Ready")
C print(Style.underline + "Go")
Line A — Style and the string should be joined with +, not a comma — it should read Style.bold + "Set".
Question 5
A print(Style.bold + "Loading...")
B print(STYLE.italic + "Error")
C print(Style.underline + "Complete")
Line B — Only the first letter of Style should be capitalised — it should read Style.italic, not STYLE.italic.

Student with a class code? Join your class →