I have an array, say:
products = [['product_1','description 1'],['product_2','description 2']]
And I want to check input against the keys, e.g.,:
product = raw_input('Enter product: ')
if product not in products.keys():
log.fatal('Invalid product: {}'.format(product))
exit(1)
keys() doesn't work -- what should I be doing?