Derek Wong's blog. A combination of images and thoughts from a software engineer in southern California.
© 2007 - 2021. All rights reserved.
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)