SyntaxError: invalid syntax. Perhaps you forgot a comma? in python

technical talkiess
0

 PS C:\python code> python main.py

  File "C:\python code\main.py", line 2

    print(Hello world 6)

          ^^^^^^^^^^^

SyntaxError: invalid syntax. Perhaps you forgot a comma?



if you print the some text but missing the quote then the python give the error 

ex:- print(hello) 


The above statenment give error.Please correct the syntax by following

The below is the right syntax

Print("hello")

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)