Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exception: SyntaxError: Missing parentheses in call

What if we run some code with print "hello" using Python 3?

  File "examples/basics/print.py", line 1
    print "hello"
                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello")?