← All printables
Python · Modules 31–40

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

A free printable Python word scramble with 37 key terms, built from the key terms of Data Structures (Modules 31–40) — String Methods (upper, lower, replace…), String Formatting (.format()), Lists – Creation, Lists – Indexing, Lists – Slicing, Lists – Methods (append, remove, pop, insert) and more. Print it or save it as a PDF — the answer key starts on its own page. No login needed.

Python Word Scramble: Data Structures (Modules 31–40)

Name:
Date:
Class:

Word scramble

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

1
.EPRUP()
Returns the string in all uppercase letters.
2
.WREOL()
Returns the string in all lowercase letters.
3
.ALERDPE(OLC, EWN)
Replaces all occurrences of old with new.
4
.PSIRT()
Removes whitespace from both ends of the string.
5
.TMAOFR()
Method that fills {} placeholders in a string with values.
6
I-FNGRST
f'...' lets you insert variables directly inside {curly braces}.
7
ISLT
An ordered collection of items in square brackets.
8
LNTEEEM
An individual item inside a list.
9
ELT(ILSN)
Returns the number of elements in the list.
10
0TSI[L]
Access the first item in the list.
11
1SIT[-L]
Access the last item in the list.
12
ITLI[S] = UEALV
Change the item at index i to a new value.
13
XERRDORINE
Error when the index is out of range.
14
ALTT[ISRST:PTOS]
Get items from start up to but not including stop.
15
SITS[:POLT]
Get items from the beginning up to stop.
16
TALS[STTRI:]
Get items from start to the end of the list.
17
PIET[::SSLT]
Get every step-th item from the list.
18
.PTEPME(ADNI)
Adds an item to the end of the list.
19
.REDEIX(STNNI, TIME)
Inserts an item at a specific position in the list.
20
.VEERAL(MVUOE)
Removes the first occurrence of a value from the list.
21
.OPP()
Removes and returns the last item, or the item at the given index.
22
ATYNIICDOR
A collection of key-value pairs in curly braces {}.
23
YKE
The label used to look up a value in a dictionary.
24
LVAUE
The data stored under a key.
25
CDKT[IEY]
Access the value associated with that key.
26
.ESKY()
Returns all keys in the dictionary.
27
.ASVLEU()
Returns all values in the dictionary.
28
.STIEM()
Returns key-value pairs as tuples.
29
.YKG(EET, TEDFLUA)
Safely accesses a key and returns default if missing.
30
OFR YKE NI D:
Iterate through all keys in the dictionary.
31
ORF V NI E.UVDSAL():
Iterate through all values in the dictionary.
32
ORF K, V NI T.ISEMD():
Iterate through key-value pairs with unpacking.
33
'YKE' NI D
Check if a key exists in the dictionary returning True or False.
34
SDTENE STIL
A list that contains other lists as elements.
35
RCDL[OIO][GWR]
Access an item using two indices: row then column.
36
NIENR STLI
A list that is an element of the outer list.
37
EDTSNE OLPO
A loop inside another loop used to access all items.

Answer Key

Python · Modules 31–40
1.EPRUP() → .upper() — Returns the string in all uppercase letters.
2.WREOL() → .lower() — Returns the string in all lowercase letters.
3.ALERDPE(OLC, EWN) → .replace(old, new) — Replaces all occurrences of old with new.
4.PSIRT() → .strip() — Removes whitespace from both ends of the string.
5.TMAOFR() → .format() — Method that fills {} placeholders in a string with values.
6I-FNGRST → f-string — f'...' lets you insert variables directly inside {curly braces}.
7ISLT → List — An ordered collection of items in square brackets.
8LNTEEEM → Element — An individual item inside a list.
9ELT(ILSN) → len(list) — Returns the number of elements in the list.
100TSI[L] → list[0] — Access the first item in the list.
111SIT[-L] → list[-1] — Access the last item in the list.
12ITLI[S] = UEALV → list[i] = value — Change the item at index i to a new value.
13XERRDORINE → IndexError — Error when the index is out of range.
14ALTT[ISRST:PTOS] → list[start:stop] — Get items from start up to but not including stop.
15SITS[:POLT] → list[:stop] — Get items from the beginning up to stop.
16TALS[STTRI:] → list[start:] — Get items from start to the end of the list.
17PIET[::SSLT] → list[::step] — Get every step-th item from the list.
18.PTEPME(ADNI) → .append(item) — Adds an item to the end of the list.
19.REDEIX(STNNI, TIME) → .insert(index, item) — Inserts an item at a specific position in the list.
20.VEERAL(MVUOE) → .remove(value) — Removes the first occurrence of a value from the list.
21.OPP() → .pop() — Removes and returns the last item, or the item at the given index.
22ATYNIICDOR → Dictionary — A collection of key-value pairs in curly braces {}.
23YKE → Key — The label used to look up a value in a dictionary.
24LVAUE → Value — The data stored under a key.
25CDKT[IEY] → dict[key] — Access the value associated with that key.
26.ESKY() → .keys() — Returns all keys in the dictionary.
27.ASVLEU() → .values() — Returns all values in the dictionary.
28.STIEM() → .items() — Returns key-value pairs as tuples.
29.YKG(EET, TEDFLUA) → .get(key, default) — Safely accesses a key and returns default if missing.
30OFR YKE NI D: → for key in d: — Iterate through all keys in the dictionary.
31ORF V NI E.UVDSAL(): → for v in d.values(): — Iterate through all values in the dictionary.
32ORF K, V NI T.ISEMD(): → for k, v in d.items(): — Iterate through key-value pairs with unpacking.
33'YKE' NI D → 'key' in d — Check if a key exists in the dictionary returning True or False.
34SDTENE STIL → Nested list — A list that contains other lists as elements.
35RCDL[OIO][GWR] → grid[row][col] — Access an item using two indices: row then column.
36NIENR STLI → Inner list — A list that is an element of the outer list.
37EDTSNE OLPO → Nested loop — A loop inside another loop used to access all items.

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, SC in Schools - Introduction to Coding - Python, VCE Software Development - U3O1 - Programming, VCE Software Development - U4O1 - development and evaluation, 7-8 Digital Technologies: Programming in Python, 9-10 Digital Technologies: Data structures in Python, VCE Applied Computing U1O2 Programming: Data structures, IGCSE Computer Science 0478 — 7c Pseudocode and Flowcharts, 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 3 — Interactions Between Users, Data and Digital Systems, QCE Digital Solutions Unit 4 — Prototype Digital Data Exchanges, WA Computer Science ATAR Year 11 — Control Structures and Data Types

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.