I'm attempting to program a loop with a dictionary of barcodes hooked up to a scanner with a raspberry pi and it only allows certain numbers to be placed in the dictionary. The example code not working is:
variable = dict()
variable[0425872013] = 200
while True:
print('ready to scan next item')
buffer = input('->')
print(variable[buffer])
It continues to pop up as an invalid token with the variable number:
File "foo.py", line 2
variable[0425872013] = 200
^
SyntaxError: invalid token
I've tried putting them in as strings and it won't register them when the barcode inputs the number.