Invalid syntax with print "Hello World"

unknown unknown at unknown.com
Thu Nov 14 17:41:23 CET 2013


On Thu, 14 Nov 2013 07:05:08 -0800, johannes.gunz97 wrote:

> Am Donnerstag, 12. März 2009 07:57:11 UTC+1 schrieb Henrik Bechmann:
>> obviously total mewbiew:
>> 
>> My first program in Python Windows
>> 
>> print "Hello World"
>> 
>> I select Run/Run Module and get an error:
>> 
>> Syntax error, with the closing quote highlighted.
>> 
>> Tried with single quotes as well. Same problem.
>> 
>> Can someone explain my mistake?
>> 
>> Thanks,
>> 
>> - Henrik
> 
> thanx

which version of python?
if V3.X then you need print ('Hello World')
as print has changed from a statement to a function.



More information about the Python-list mailing list