Cards (7)

  • List
    A sequence of a bunch of other data types in Python
  • Index
    The position of an element within a list, starting from 0
  • Lists in Python can contain elements of different data types
  • Modifying an element in a list
    Assign a new value to the element at a specific index
  • When you assign one list variable to another, they both refer to the same list in memory
  • The append() method adds a new element to the end of a list
  • Use square brackets indicate the beginning and end of a list