May-14-2019, 10:58 PM
When I run this code there is no error but it isn't printing match like I want it to. Any idea as to why?
The code is as follows.
The code is as follows.
while True:
numbers = 534535345
barcode = int(input("Barcode: "))
if numbers == barcode:
print("match")#The output prints "Barcode: " like it should, but once I input numbers matching the "numbers" variable I press enter and the #string "match" isn't printed. Also the while loop should repeat but it isn"t.Output:Barcode: 534535345
