Design & Development 005 Flashcards
1
Q
What is a Data Structure?
A
It is a way to store multiple values into one variable. These are things like Lists and Dictionaries.
2
Q
What are these?
list_example = [1,2,3]
tuple_example = (1,2,3)
set_example = {1,2,3}
dictionary_example = {
“Name”: “Owen”,
“Job”: “SD Lecturer”
}
A
These are all Data Structures in python.
3
Q
What is a Set?
A
It is a data structure that cannot contain duplicate values.
4
Q
What is a Dictionary?
A
It is a data structure that has a “key:value” system. This is like having variable in a list.
5
Q
What is a Trace Table?
A
It is used to show what should output and what all values should equal. This done without the program running.