edX_MITx_6.00.1x/Problem_Set_1/item_order.py

order = ""
def item_order(order):

    salad = order.count("salad")
    hamburger = order.count("hamburger")
    water = order.count("water")

    return("salad:{} hamburger:{} water:{}".format(salad, hamburger, water))

item_order(order)

Leave a Reply

Your email address will not be published. Required fields are marked *