Q:

python string interpolation syntax error

I am playing with the string interpolation and I keep getting the following and don't understand why I keep getting invalid syntax
>>> import time
>>> today = time.strftime("%A")
>>> print "Today is %s." % today
File "<ipython-input-3-c488ebb957ac>", line 1
print "Today is %s." % today
                   ^
SyntaxError: invalid syntax

A:

Perhaps you're inadvertently invoking a Python3 interpreter.  Try print("Today is %s." % today). (print() as a function rather than the old print as a statement.

