- This event has passed.
4 PM – Python OOP – Darin
September 23 @ 4:00 pm - 5:00 pm
Today We:
- Changed the grocery system program to use classes to minimize the number of dictionaries needed for our program.
- Reviewed how dictionaries work.
Homework:
(1) IF you haven’t already:
- Do Try It Yourself page 162 in a new file called Sep16_ClassesHW.py
- Copy pages 163 to 166 in the same file as the above^
(2) MAIN homework, do the following:
- Do Try It Yourself page 167 numbers 9-4 and 9-5 in the same file as the above^.
- A default value means something like __init__(self, name, price = 10), where price is a default value (an optional value)
Notes:
Email me at ddjapri@ayclogic.com if you have any questions.