$ python -V
Python 2.7.10
$ uname -a
Darwin Carters-MacBook-Pro-2.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
I was trying to do something like this today in the python interpreter
datetime.datetime(2019, 07, 26) - datetime.datetime.today()
and this worked fine, but when I went to
datetime.datetime(2019, 08, 26) - datetime.datetime.today()
it throws a "SyntaxError: invalid token"
Then I tried this
>>> 01
1
>>> 02
2
>>> 03
3
>>> 04
4
>>> 05
5
>>> 06
6
>>> 07
7
>>> 08
File "<stdin>", line 1
08
^
SyntaxError: invalid token
what's going on?