Python for GCSE

4: Strings and lists

Revision tools
You can print this page for a quick reference guide or you can use the tools below to create printable test sheets
4.1: understand the need for data structures
Strings and lists
KeywordDefinition
data structurememory storage with a name that can store multiple values
variablememory storage location with a name that can store a single value
4.2: understand how to use one and two-dimensional arrays
Strings and lists
KeywordDefinition
arraydata structure which can store multiple values of the same data type
indexa number which indicates the position of a value inside a string or array
one dimensionaltype of array which is like a list of values. You need one index to determine the position of an individual value.
two dimensionaltype of array which is like a table of values. You need two indices to determine the position of an individual value
4.3: be able to format and concatenate strings and find substrings
Strings and lists
KeywordDefinition
characteran individual letter, symbol or digit
concatenatejoining two strings together to make a longer string
indexthe position within a data structure (such as a string or array) which starts at 0
stringdata type made up of multiple characters (can contain text as well as numbers + symbols)