1.4.2 arrays, list, etc. Flashcards
1
Q
What is an array?
A
a strucure the stores data using indices.
2
Q
What are the characteristics of an array?
A
- hold specific number of data, number of data is determined when the array is created.
- data stored must be from the same data type.
3
Q
What is a list?
A
Structure that store data using a single identifier and index.
4
Q
characteristics of a list?
A
- doesn’t have a fixed size.
- can store data from different data types.
5
Q
What is a tuple?
A
- a structure similar to lists, the only difference is that data in tuples cannot be modified.
- this is useful for data that must not be changed.