Code icon

The App is Under a Quick Maintenance

We apologize for the inconvenience. Please come back later

Menu iconMenu iconPython & SQL Bible
Python & SQL Bible

Chapter 22 - Appendix C: Python Cheat Sheet

Data Structures

  1. List
my_list = [1, 2, 3, 4, 5]
  1. Dictionary
my_dict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
  1. Tuples
my_tuple = ("apple", "banana", "cherry")
  1. Sets
my_set = {"apple", "banana", "cherry"}

Data Structures

  1. List
my_list = [1, 2, 3, 4, 5]
  1. Dictionary
my_dict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
  1. Tuples
my_tuple = ("apple", "banana", "cherry")
  1. Sets
my_set = {"apple", "banana", "cherry"}

Data Structures

  1. List
my_list = [1, 2, 3, 4, 5]
  1. Dictionary
my_dict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
  1. Tuples
my_tuple = ("apple", "banana", "cherry")
  1. Sets
my_set = {"apple", "banana", "cherry"}

Data Structures

  1. List
my_list = [1, 2, 3, 4, 5]
  1. Dictionary
my_dict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
  1. Tuples
my_tuple = ("apple", "banana", "cherry")
  1. Sets
my_set = {"apple", "banana", "cherry"}