----------------------------------------/
i = 0
x = 00
list1 = [(3000,2,1), (9000,0,8), (4,5,6, 000)]
a = (len(list1))
while (True):
if (x in list1[i]):
print ( list1[i])
-------------------------------------------------/
This will print: (9000, 0, 8) and (4, 5, 6, 0). This is false result-- How to enforce digit-count or other workaround to avoid this.
Pycharm 2020.2