Invalid syntax error with pycharm

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/python-beginner-en-zFPOx/0/4?curriculum_id=4f89dab3d788890003000096

<In what way does your code behave incorrectly? Include ALL error messages.>
print ā€˜%s/%s/%sā€™ % (now.day, now.month, now.year)
^
SyntaxError: invalid syntax

Process finished with exit code 1

<What do you expect to happen instead?>
I try to reviewing with pycharm but error show up. even i copy all code from code in codecademy.
what am i doing resolve it?

```python

from datetime import datetime
now = datetime.now()

print ā€˜%s/%s/%sā€™ % (now.day, now.month, now.year)

If your environment is Python 3.x.x then use print() since it is a function.

1 Like

Thanks! It work after add parenthesis :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.