American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:00 PM- Python OOP – Joshua

March 26 @ 6:00 pm - 7:00 pm

Today we did

  • Working on making our grocery system better

Homework
The idea is to create a menu based on what is inside your current food dictionary.

When we add  food to our dictionary, we need to change our menu! but how do we do that? you homework is to experiment (and later talk about) what you did to try to create a menu based on what is in the dictionary

def create_menu(self):
    # your goal, is do your best.
    # create a menu with what is inside the dictionary when this run
    # the menu needs a few things
    # an ADD option to add food
    # a exit option to exit
    # for each id'd food, its own line that look like the current
    your_dictionary = self.grocery_dict

    new_menu = ""
    new_menu= new_menu + "What would you like to do"

    # hint "\n" is  a new line
    # you can add strings together

    


    self.menu=new_menu

Details

Date:
March 26
Time:
6:00 pm - 7:00 pm