say() function
A custom function that speaks text aloud using text-to-speech; the first argument is the text to speak and the second argument is the voice number
Understanding say() function in SC in Schools Python
What it does: The number 2 in say("Welcome!", 2) is the voice number — it tells the function which voice to use. say() and print() produce different types of output — audio versus visible text in the console. say() always needs two arguments: the text to speak and the voice number to use. say() must be called with parentheses wrapping both arguments. Using different voice numbers for different say() calls lets you create a two-speaker conversation. say() must be written in all lowercase. Say() with a capital S will cause an error. say() takes a string and a voice number, then speaks the string aloud through the computer's speakers.
Common mistakes: The closing quote is missing from the string. It should be say("See you later!", 1) with a closing quote and a voice number. Line 2 is wrong. say() must be called with parentheses. say "Hi again!", 1 is missing the brackets around the arguments. Line 3 is wrong.
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.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
say()Fill in the Blanks
Spot the Error
Student with a class code? Join your class →