Quiz 3 Concepts
(More details will be added soon!)
- Quiz 0-2 Concepts plus:
- LS23 More On Data
- Representing
dicts as elements of lists in memory diagrams
- Representing
lists as elements of dicts in memory diagrams (Solutions to CQ memory diagrams on Campuswire!)
- LS24 Intro to Object Oriented Programming (Classes)
- Syntax for defining a Class and its methods
- Creating a
Class
- Listing attributes and their types
- Defining a constructor method (
__init__)
- Defining a method within the class
- Syntax for instantiating a Class and calling methods
- Importing a
Class and calling its constructor
- Calling methods on an object of a defined
Class
- Accessing attributes of an object of a
Class (e.g. my_pizza.toppings)
- LS25 Classes in Memory
- Memory diagram for a Class definition and instantiation (Hint: Try making a step-by-step procedure as outlined here.)
- LS26 Magic Methods
- Syntax for defining and calling a magic method
- Writing a
__str__ magic method
- Diagramming a
__str__ magic method
- LS27 Operator Overloads
- Syntax for defining and calling a magic method that overloads operators
- Writing and Diagramming both
__add__ and __mult__ magic methods
Resources
Practice Problems | Practice Memory Diagrams)