30/09/2018, 17:51

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.CoreFileSystem::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'
Minh Hoàng viết 19:54 ngày 30/09/2018

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

Đệt Ai Biết viết 19:53 ngày 30/09/2018

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

Bài liên quan
0