2

I learned that Python 3 print statements require parentheses, but I was told I could do:

from __past__ import print

but this doesn't seem to work. It gives me an error

SyntaxError: Missing parentheses in call to 'print'

Any idea what's wrong?

Full code:

from __past__ import print

print 'hello'
brian
  • 2,745
  • 2
  • 17
  • 33

1 Answers1

4

from __past__ import print isn't a real thing. Perhaps you misunderstood a joke, or someone lied to you. Whatever the case may be, you'll have to get used to print being a function, because there's no toggle to bring back the statement.

user2357112
  • 260,549
  • 28
  • 431
  • 505