You've learned this already. ✅
Click here to view the next lesson.
Chapter 22 - Appendix C: Python Cheat Sheet
Data Structures
- List
my_list = [1, 2, 3, 4, 5]
- Dictionary
my_dict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
- Tuples
my_tuple = ("apple", "banana", "cherry")
- Sets
my_set = {"apple", "banana", "cherry"}
Data Structures
- List
my_list = [1, 2, 3, 4, 5]
- Dictionary
my_dict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
- Tuples
my_tuple = ("apple", "banana", "cherry")
- Sets
my_set = {"apple", "banana", "cherry"}
Data Structures
- List
my_list = [1, 2, 3, 4, 5]
- Dictionary
my_dict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
- Tuples
my_tuple = ("apple", "banana", "cherry")
- Sets
my_set = {"apple", "banana", "cherry"}
Data Structures
- List
my_list = [1, 2, 3, 4, 5]
- Dictionary
my_dict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
- Tuples
my_tuple = ("apple", "banana", "cherry")
- Sets
my_set = {"apple", "banana", "cherry"}