I want to interrogate a dictionary for a particular text
cursor = connection.cursor()
cursor.execute("SELECT distinct feature, featuredetails from features where the_id = %s", [id])
feature = dictfetchall(cursor)
results in
[{'featuredetails': u'', 'feature': u'TV_SET'}, {'featuredetails': u'', 'feature': u'INVERTER'}, {'featuredetails': u'', 'feature': u'HEATING'}]
So I want to know if the key 'feature' contains TV_SET or INVERTER or HEATING
Been trying various things for hours and not got anywhwere so far so any help would be much appreciated