from datetime import datetime
datetime(2018,01,01,10,08,00)
The above code produces an error
>>> datetime(2018,01,01,10,08,0)
SyntaxError: invalid token
If i change 08
to any value between 01 and 07 then the error will not show and also the error will unshown if i change 08
to 8
.
What is the reason behind it?