How come Date and time works for codeacdemy but not for shell 3.6.5

How come Date and time works for codeacdemy but not for shell 3.6.5 althogth I copy and paste

because there a difference between python2 and python3. You will need to figure out what these differences are

we could help you, if you are a bit more forthcoming with information (like code and error message)