pi@raspberrypi:~ $ cd Documents/attendance/
pi@raspberrypi:~/Documents/attendance $ ./Attendance.py
Please swipe your card: %CHEND151?
Traceback (most recent call last):
File "./Attendance.py", line 15, in <module>
eqid = input('Please swipe your card: ').strip().upper()
File "<string>", line 1
%CHEND151?
^
SyntaxError: invalid syntax
pi@raspberrypi:~/Documents/attendance $
I don't understand why I am getting this error? is it because of the %
because I try without it and it still happens.
pi@raspberrypi:~/Documents/attendance $ ./Attendance.py
Please swipe your card: chend151
Traceback (most recent call last):
File "./Attendance.py", line 15, in <module>
eqid = input('Please swipe your card: ').strip().upper()
File "<string>", line 1, in <module>
NameError: name 'chend151' is not defined
pi@raspberrypi:~/Documents/attendance $