I’m getting a very strange Python 3 error when trying to compare three variables in a if loop.
if now.weekday() == 6 or minutesRemaining <= 60 or modeArg == "run":
^
SyntaxError: invalid character in identifier
What does this mean?
My code works when I compare modeArg by itself:
if modeArg == "run":
And also when I only write the first two statements:
if now.weekday() == 6 or minutesRemaining <= 60:
My code is on GitHub. Thanks in advance.
You have something which looks like a space which isn’t in that line:
Incidentally, you probably want to avoid using tabs for indentation: four spaces make life much easier.