hwid=['id1', 'id2','id1', 'id2','id1', 'id2','id1','id1', 'id2','id1',]
f=open('text.txt', 'a')
f.write(str(hwid) + '\n')
with open('text.txt', 'r') as file:
id = file.read().strip
print("usabile id: " + str(id))
list = id
if (id in list):
print('False')
if (id in list):
print('True')
id = [1, 2, 3, 4, 5]
if 5 in id:
print('true')
return True
else:
print('false')
return False