Lỗi Missing parentheses in call to 'print' trong python

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS> cd ..
PS C:\>
PS C:\> cd .\lieudeptrai
PS C:\lieudeptrai> ls


    Directory: Microsoft.PowerShell.Core\FileSystem::C:\lieudeptrai


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        14/08/2015   6:07 CH        189 ex1.py


PS C:\lieudeptrai> python ex1.py
  File "ex1.py", line 1
    print "Hello Word!"
                      ^
SyntaxError: Missing parentheses in call to 'print'

In Python 3 you need to add parentheses around the value to be printed:
print(“Hello world”)
http://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python

1 Like

cảm ơn bạn mình đã fix xong

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?