2.2.3(e) 1D + 2D arrays Flashcards
1
Q
ADIOS
A
Arrays are a
Data structure which uses an
Index to identify each element, which has just
One indentifier, of a
Single data type
2
Q
identifiers =
A
= numbers = [1,4,5,6]
3
Q
1st index =
5th index =
A
1st index = 0
5th index = 6
4
Q
len finds out …
A
… how many elements are in an array
5
Q
in is used to see …
A
… if what you’re looking for is in the array
6
Q
columns =
A
for j in range
7
Q
rows =
A
= for i in range
8
Q
2D arrays are …
A
… multi-dimensional/2-dimensional arrays