I am trying to match id
with id_list
using a one-liner,following doesnt seem to work,how do I fix it?
id = 77bb1b03
id_list = ['List of devices attached ', '572ea01e\tdevice', '77bb1b03\tdevice', '']
if id in id_list:
print "id present"
else:
print "id not present"