>>> print "hello world"
syntax error :invalid syntax(<pyshell#0>, line1)


where is the prob

Member Avatar for leegeorg07

i assume you are using python 30 or 31, in those verions print is now a function so you need to use:

print("Hello, World")

ya that worked thanks

Member Avatar for leegeorg07

no prob, i would reccomend looking at the documentation at python.org for additional guidance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.