I am not sure why this is happening or if it matters in the end. This bit of code works in the lesson and allows me to move forward:
from datetime import datetime
now = datetime.now()
print '%s/%s/%s' % (now.month, now.day, now.year)
However that same bit of code gives an error in the shell as well as PyCharm:
**print '%s/%s/%s' % (now.month, now.day, now.year)**
SyntaxError: invalid syntax
Process finished with exit code 1
It works fine if I print each one in a line by itself but not when I use %. As I do the little projects after lesson chunks I also work on them in PyCharm. This is the first time where this has happened to me. I have looked at this for a while, is there something I am missing?
Thank you very much for your help.