Going The Wong Way I'm ALWAYS going the Wong way

Shopping Is Fun, Really!

Is this true for all men or just myself?

items_in_store = getAllItems()

def shop_fast(user, items_to_buy):
    shopping_cart_items = []
    for item in items_to_buy:
        item.find()
        if user.wants(item):
            shopping_cart_items.append(item)
    for item in shopping_cart_items:
        user.buy(item)

def shop_slow(user, items_to_buy):
    shopping_cart_items = []
    for item in items_in_store:
        if item in items_to_buy:
            print('Awesome!')
        if user.wants(item):
            shopping_cart_items.append(item)
    for item in shopping_cart_items:
        user.buy(item)

if gender is 'Male':
    shop_fast(user, items)
else:
    shop_slow(user, items)

Comments