this is my code:
for count in range(NOI):
ig=input("enter a GTIN code: ")
while ig!=("21356797"):
print("incorrect")
ig=input("enter a GTIN code: ")
count =count+1
and this is the output:
21356797
13246785
31325974
45689413
34512340
56756777
how many items do you want to buy?: 1
enter a GTIN code: 21356797
>>>
which is what i want. However once i put in OR in my while loop, i can't get it to work like the first part:
while ig!=("21356797" or "13246785"):
print("incorrect")
ig=input("enter a GTIN code: ")
count =count+1
and this is the output:
how many items do you want to buy?: 1
enter a GTIN code: 13246785
incorrect
enter a GTIN code: 21356797
>>>