← All printables
Python · Modules 41–50

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

A free printable Python word scramble with 36 key terms, built from the key terms of Advanced (Modules 41–50) — Sets – Operations, Nested Lists, Lists + Dictionaries, File Operations – Open, File Operations – Read, File Operations – Write and more. Print it or save it as a PDF — the answer key starts on its own page. No login needed.

Python Word Scramble: Advanced (Modules 41–50)

Name:
Date:
Class:

Word scramble

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

1
ITSL FO ICTSD
A list where each element is a dictionary like records.
2
IKTL[S]['EIY']
Access a key in the i-th dictionary of the list.
3
CTID IWHT SILT AEVLU
A dictionary where one of its values is a list.
4
ETS
An unordered collection of unique items in curly braces.
5
TSE()
Creates an empty set - since {} would create a dict.
6
.MAD(ETID)
Adds an item to the set.
7
.OVMREE(METI)
Removes an item from the set - raises an error if not found.
8
IUNNO
Combines all items from both sets with no duplicates.
9
CRTNIESONETI
Returns only items that appear in BOTH sets.
10
RCFIFEEDNE
Returns items in the first set but NOT in the second.
11
REIMYSMCT FCFDEEERIN
Returns items in either set but NOT in both.
12
EONP()
Built-in function that opens a file.
13
'R' EDOM
Read-only - the default mode for opening files.
14
'W' EOMD
Write mode - creates or overwrites the file.
15
'A' EODM
Append mode - adds new content to the end of the file.
16
.ADRE()
Reads the entire file as one string.
17
.DNELEIAR()
Reads the next single line from the file.
18
.SNILEERAD()
Returns a list of all lines in the file.
19
OFR INEL NI F:
Loop through the file one line at a time.
20
.IIGRT(TNRWES)
Writes a string to the file.
21
.NWTISLELRI(TIES)
Writes a list of strings to the file.
22
RNFRIONOERUELFTDO
Error when trying to read a file that doesn't exist.
23
MERRNIOEIRRSOSP
Error when you don't have access to the file.
24
LNFAYLI:
Block that always runs - used for cleanup.
25
TPXCEE ___ROERR:
Catches a specific type of error.
26
UELMOD
Any .py file that can be imported and reused.
27
POTMRI UEODLM
Loads the module - use module.function() to access it.
28
OMFR UMLDEO TOPRMI UCFN
Imports just one function - use func() directly.
29
__MAEN__
'__main__' when run directly, or the module name when imported.
30
SCALS
A blueprint that defines the structure of objects.
31
EJOBTC
A specific instance created from a class.
32
NCNITSEA
Another word for an object created from a class.
33
ESFL
Refers to the current object inside class methods.
34
__NTII__
Constructor method that runs automatically when an object is created.
35
LUTB.EIFTTESRA
Creates or accesses an attribute on the object.
36
STOUNROTCCR
A method that initializes new objects - in Python this is __init__.

Answer Key

Python · Modules 41–50
1ITSL FO ICTSD → List of dicts — A list where each element is a dictionary like records.
2IKTL[S]['EIY'] → list[i]['key'] — Access a key in the i-th dictionary of the list.
3CTID IWHT SILT AEVLU → Dict with list value — A dictionary where one of its values is a list.
4ETS → Set — An unordered collection of unique items in curly braces.
5TSE() → set() — Creates an empty set - since {} would create a dict.
6.MAD(ETID) → .add(item) — Adds an item to the set.
7.OVMREE(METI) → .remove(item) — Removes an item from the set - raises an error if not found.
8IUNNO → Union — Combines all items from both sets with no duplicates.
9CRTNIESONETI → Intersection — Returns only items that appear in BOTH sets.
10RCFIFEEDNE → Difference — Returns items in the first set but NOT in the second.
11REIMYSMCT FCFDEEERIN → Symmetric difference — Returns items in either set but NOT in both.
12EONP() → open() — Built-in function that opens a file.
13'R' EDOM → 'r' mode — Read-only - the default mode for opening files.
14'W' EOMD → 'w' mode — Write mode - creates or overwrites the file.
15'A' EODM → 'a' mode — Append mode - adds new content to the end of the file.
16.ADRE() → .read() — Reads the entire file as one string.
17.DNELEIAR() → .readline() — Reads the next single line from the file.
18.SNILEERAD() → .readlines() — Returns a list of all lines in the file.
19OFR INEL NI F: → for line in f: — Loop through the file one line at a time.
20.IIGRT(TNRWES) → .write(string) — Writes a string to the file.
21.NWTISLELRI(TIES) → .writelines(list) — Writes a list of strings to the file.
22RNFRIONOERUELFTDO → FileNotFoundError — Error when trying to read a file that doesn't exist.
23MERRNIOEIRRSOSP → PermissionError — Error when you don't have access to the file.
24LNFAYLI: → finally: — Block that always runs - used for cleanup.
25TPXCEE ___ROERR: → except ___Error: — Catches a specific type of error.
26UELMOD → Module — Any .py file that can be imported and reused.
27POTMRI UEODLM → import module — Loads the module - use module.function() to access it.
28OMFR UMLDEO TOPRMI UCFN → from module import func — Imports just one function - use func() directly.
29__MAEN__ → __name__ — '__main__' when run directly, or the module name when imported.
30SCALS → Class — A blueprint that defines the structure of objects.
31EJOBTC → Object — A specific instance created from a class.
32NCNITSEA → Instance — Another word for an object created from a class.
33ESFL → self — Refers to the current object inside class methods.
34__NTII__ → __init__ — Constructor method that runs automatically when an object is created.
35LUTB.EIFTTESRA → self.attribute — Creates or accesses an attribute on the object.
36STOUNROTCCR → Constructor — A method that initializes new objects - in Python this is __init__.

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, 9-10 Digital Technologies: Data structures in Python, 9-10 Digital Technologies: Modular programs and algorithms, 9-10 Digital Technologies: Object-oriented programming, debugging and testing, VCE Applied Computing U1O2 Programming: Data structures, VCE Applied Computing U1O2 Programming: Object-oriented programming, 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 2 — Data and Programming Techniques, QCE Digital Solutions Unit 3 — Interactions Between Users, Data and Digital Systems, QCE Digital Solutions Unit 3 — Innovative Digital Solutions, QCE Digital Solutions Unit 4 — Complex Digital Data Exchange Problems and Solution Requirements, 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, WA Computer Science ATAR Year 11 — Network Communications

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.