QZ02 Concepts


Quiz 2 Concepts

  • Quiz 0 + 1 Concepts plus:
  • LS15: Importing Modules
    • Knowing basic import syntax: from <package-name> import <module-name> and from <package-name>.<module-name> import <function>
    • Knowing how to handle if __name__ == "__main__": in a memory diagram
  • LS16: Lists
    • Basic list syntax and typing
    • Indexing on lists and updating values at an index (subscription notation)
    • len() function
    • methods: .append() and .pop()
  • CL05: Lists in Memory
    • Memory Diagrams with lists
    • Writing functions with lists (both modifying existing lists or creating new lists)
  • CL06: for loops
    • Using for ... in ... syntax in memory diagrams and writing functions
    • Using for ... in range(...) syntax in memory diagrams and writing functions
  • CL07: Dictionaries
    • Basic list syntax and typing
    • Accessing, adding, and modifying values at an index (subscription notation)
    • function: len()
    • method: .pop()
    • using the boolean expression: elem in dictionary
    • Memory Diagrams with dictionaries
    • Using a for loop to iterate through a dictionary’s keys
Contributor(s): Alyssa Byrnes