Skip to content

Week 9 Notes

  • Lecture 23: Data Examples (01/08/22)
    • List methods
      • append adds one element to a list
      • extend adds all elements in one list to another list
      • addition & slicing create new lists containing existing elements
      • list function also creates a new list containing existing elements
      • slice assignment replaces a slice with new values
      • pop removes & returns the last element
      • remove removes the first element equal to the argument
      • slice assignment can remove elements from a list by assigning [] to a slice
  • Lab 08: Midterm Review (01/08/22)
  • Lecture 24: Users (02/08/22)