- This event has passed.
7 PM – Python OOP – Sebastian
February 7 @ 7:00 pm - 8:00 pm
Today We Did
- Finished library system project
- Began school system project
- Recreated grocery item class
- AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework: Recall the print_menu() function in the old code (main_v1.py in the Google Drive). We will be creating our own version of it using OOP for the homework.
- Ask the user what they want to purchase using a normal print statement
- Loop through each grocery item inside the inventory attribute (there aren’t any yet, but we’ll add grocery item objects next class).
- Print out each grocery item’s name and price in the loop.
- Ask for user input, asking “Enter your selection: ” outside of the loop.
- Return user input
- The homework looks like a lot, but it’s almost identical to the content in the print_menu() from our original main_v1.py, so please use the file in our Google Drive to help you.