← All printables
Python · Modules 21–30

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

A free printable Python word scramble with 40 key terms, built from the key terms of Functions (Modules 21–30) — range(), Error Handling – try/except basics, break and continue, Functions – Defining, Functions – Parameters, Functions – Return Values and more. Print it or save it as a PDF — the answer key starts on its own page. No login needed.

Python Word Scramble: Functions (Modules 21–30)

Name:
Date:
Class:

Word scramble

Unscramble the letters and write each key term on the line.

1
OPAGS(RETN)
Creates numbers from 0 up to but not including stop.
2
NRGTA(ATESR, TSPO)
Creates numbers from start up to but not including stop.
3
NATRG(SATRE, OTSP, ESTP)
Creates numbers from start, stepping by step, up to but not including stop.
4
PEST
How much to count by - default is 1, use -1 to count backwards.
5
YTR
Block containing code that might cause an error.
6
TEPCEX
Block that runs only when an error occurs in the try block.
7
EORALRVURE
Error when a value is the wrong type e.g. int('abc').
8
RERRO GDAINNHL
Using try/except to manage errors without crashing.
9
KBRAE
Immediately exits the entire loop.
10
ICUNENTO
Skips the rest of this iteration and goes to the next one.
11
HIWEL UETR: + EBKAR
Common pattern: loop forever until a condition triggers break.
12
POLO OONCRLT
Using break and continue to control the flow of a loop.
13
EDF
Keyword that creates (defines) a new function.
14
NFTCNIUO
A reusable block of code with a name.
15
ACLL
Running a function by writing its name with parentheses.
16
NIUFCTNO YDOB
The indented code that runs when the function is called.
17
AEARREPMT
A variable name in the function definition that receives data.
18
GMUTAREN
The actual value passed to a function when calling it.
19
FED ERNEM(TGEA):
Defines a function with one parameter called name.
20
LETAR('CIEEG')
Calls greet passing 'Alice' as the argument for name.
21
URETNR
Sends a value back to the code that called the function.
22
UNRRET AEVLU
The value a function sends back when it finishes.
23
OENN
Default return value when no return statement is used.
24
TERNRU SV ITPNR
return sends data for code to use; print just displays text.
25
EPSOC
Where a variable can be accessed - local or global.
26
COALL ILRAEVAB
Variable inside a function that only exists in that function.
27
BGALOL ALABVIER
Variable outside all functions that is readable everywhere.
28
ONEMERRAR
Error when a variable doesn't exist in the current scope.
29
UELFADT NTGMUARE
A pre-set value used when no argument is provided.
30
TILOOAPN ERATAERPM
A parameter with a default that the caller can skip.
31
UIDQRERE EAERRAMPT
A parameter without a default that the caller must provide.
32
IVRRDOEE
Passing an argument to replace the default value.
33
NDIEX
The position number of a character in a string, starting at 0.
34
R0SGTN[I]
Accesses the first character of the string.
35
EVIAENGT NEXDI
Counts from the end: -1 is last, -2 is second-to-last.
36
DNEOREIRXR
Error when the index is beyond the string length.
37
ELCSI
Extract a portion of a string using [start:stop].
38
[ORPTT:SAST]
Get characters from start up to but not including stop.
39
[:TSOP]
Get characters from the beginning up to stop.
40
[ARTTS:]
Get characters from start to the end of the string.

Answer Key

Python · Modules 21–30
1OPAGS(RETN) → range(stop) — Creates numbers from 0 up to but not including stop.
2NRGTA(ATESR, TSPO) → range(start, stop) — Creates numbers from start up to but not including stop.
3NATRG(SATRE, OTSP, ESTP) → range(start, stop, step) — Creates numbers from start, stepping by step, up to but not including stop.
4PEST → Step — How much to count by - default is 1, use -1 to count backwards.
5YTR → try — Block containing code that might cause an error.
6TEPCEX → except — Block that runs only when an error occurs in the try block.
7EORALRVURE → ValueError — Error when a value is the wrong type e.g. int('abc').
8RERRO GDAINNHL → Error handling — Using try/except to manage errors without crashing.
9KBRAE → break — Immediately exits the entire loop.
10ICUNENTO → continue — Skips the rest of this iteration and goes to the next one.
11HIWEL UETR: + EBKAR → while True: + break — Common pattern: loop forever until a condition triggers break.
12POLO OONCRLT → Loop control — Using break and continue to control the flow of a loop.
13EDF → def — Keyword that creates (defines) a new function.
14NFTCNIUO → Function — A reusable block of code with a name.
15ACLL → Call — Running a function by writing its name with parentheses.
16NIUFCTNO YDOB → Function body — The indented code that runs when the function is called.
17AEARREPMT → Parameter — A variable name in the function definition that receives data.
18GMUTAREN → Argument — The actual value passed to a function when calling it.
19FED ERNEM(TGEA): → def greet(name): — Defines a function with one parameter called name.
20LETAR('CIEEG') → greet('Alice') — Calls greet passing 'Alice' as the argument for name.
21URETNR → return — Sends a value back to the code that called the function.
22UNRRET AEVLU → Return value — The value a function sends back when it finishes.
23OENN → None — Default return value when no return statement is used.
24TERNRU SV ITPNR → return vs print — return sends data for code to use; print just displays text.
25EPSOC → Scope — Where a variable can be accessed - local or global.
26COALL ILRAEVAB → Local variable — Variable inside a function that only exists in that function.
27BGALOL ALABVIER → Global variable — Variable outside all functions that is readable everywhere.
28ONEMERRAR → NameError — Error when a variable doesn't exist in the current scope.
29UELFADT NTGMUARE → Default argument — A pre-set value used when no argument is provided.
30TILOOAPN ERATAERPM → Optional parameter — A parameter with a default that the caller can skip.
31UIDQRERE EAERRAMPT → Required parameter — A parameter without a default that the caller must provide.
32IVRRDOEE → Override — Passing an argument to replace the default value.
33NDIEX → Index — The position number of a character in a string, starting at 0.
34R0SGTN[I] → string[0] — Accesses the first character of the string.
35EVIAENGT NEXDI → Negative index — Counts from the end: -1 is last, -2 is second-to-last.
36DNEOREIRXR → IndexError — Error when the index is beyond the string length.
37ELCSI → Slice — Extract a portion of a string using [start:stop].
38[ORPTT:SAST] → [start:stop] — Get characters from start up to but not including stop.
39[:TSOP] → [:stop] — Get characters from the beginning up to stop.
40[ARTTS:] → [start:] — Get characters from start to the end of the string.

Modules this word scramble covers

Every module has its own free printable worksheet with an answer key, and students can practise the same terms interactively on Cloodit.

Part of: Python Coding, VCE Software Development - U3O1 - Programming, VCE Software Development - U4O1 - development and evaluation, 7-8 Digital Technologies: Programming in Python, 9-10 Digital Technologies: Python foundations, 9-10 Digital Technologies: Modular programs and algorithms, 9-10 Digital Technologies: Object-oriented programming, debugging and testing, VCE Applied Computing U1O2 Programming: Strings, input, operators and imports, VCE Applied Computing U1O2 Programming: Control structures, VCE Applied Computing U1O2 Programming: Procedures and functions, VCE Applied Computing U1O2 Programming: Validating data, IGCSE Computer Science 0478 — 7c Pseudocode and Flowcharts, ACARA Digital Technologies Years 7–8 — Programming with Control Structures and Functions (Python), ACARA Digital Technologies Years 9–10 — Testing and Validating Programs, ACARA Digital Technologies Years 9–10 — Modular and Object-Oriented Programming (Python), QCE Digital Solutions Unit 1 — Algorithms and Programming Techniques, QCE Digital Solutions Unit 1 — Programmed Solutions, QCE Digital Solutions Unit 2 — Prototype Data Solutions, QCE Digital Solutions Unit 4 — Prototype Digital Data Exchanges, WA Computer Science ATAR Year 11 — Control Structures and Data Types, WA Computer Science ATAR Year 11 — Modular Programming

More Python printables

This printable is free — no login needed.

Free classroom tools, no account: Hangman · Random Team Generator · Random Name Picker Wheel · Seating Plan Maker

Make a free class, give it a journey, and you also get:

Create a free teacher account →

No credit card. No setup fee. Make a class and invite students in under three minutes.