I have an array that has 1 element. This element contains: print(results_read[0])
[(u'n04019541', u'puck', 0.57829314), (u'n02974003', u'car_wheel', 0.24903433), (u'n03483316', u'hand_blower', 0.025689969), (u'n02910353', u'buckle', 0.015434729), (u'n04542943', u'waffle_iron', 0.012205523)]
How can I check if it contains 'car_wheel'? I tried:
if 'car_wheel' in results_read:
print('yes')
else:
print('no')
Is there any other way to do this?