American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Sebastian

February 7 @ 7:00 pm - 8:00 pm

Today We Did

  1. Finished library system project
  2. Began school system project
  3. Recreated grocery item class
  4. AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
  5. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Please submit your homework to the corresponding project’s folder in your Google Drive
  2. 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.
    1. Ask the user what they want to purchase using a normal print statement
    2. Loop through each grocery item inside the inventory attribute (there aren’t any yet, but we’ll add grocery item objects next class).
    3. Print out each grocery item’s name and price in the loop.
    4. Ask for user input, asking “Enter your selection: ” outside of the loop.
    5. Return user input
  3. 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.

Details

Date:
February 7
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights