Outline for November 15, 2022

Reading: §13
Assignment: Homework 4, due November 22, 2022


  1. Another example [basic-xml2.py]

  2. Example: prettyprinting XML [xmlpp.py]

  3. Classes and objects [cards.py, war.py]
    1. User-defined types (classes)
    2. Instantiate (create) new object (__init__)
    3. Objects and attributes
    4. Objects and methods
    5. Printing objects (__str__)


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: [email protected]
MHI 289I, Programming in Health Informatics
Version of November 15, 2022 at 11:33AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh