Help! Syntax error!! - Raspberry Pi Forums
the simplest of programs: print "hello, world!". whatever add, last ( " ) in first print line shows syntax error. however, when run program lx window with... helloworld.py ...it runs , works perfectly.
why getting syntax error when colour code shows line green?
advice gratefully received... got yesterday , set today, can't off starting blocks!
why getting syntax error when colour code shows line green?
advice gratefully received... got yesterday , set today, can't off starting blocks!
hello,
assume, want run hello world python code, , in console first start python, , enter "print "hello world"".
when start python interpreter, check version information printed.
(the following system)
in 2.7, print "something" valid syntax.
in python3, not valid, print("hello...") needed here.
hope helps
gerhard
assume, want run hello world python code, , in console first start python, , enter "print "hello world"".
when start python interpreter, check version information printed.
(the following system)
code: select all
pi@raspberrypi ~ $ python python 2.7.3 (default, jan 13 2013, 11:20:46) [gcc 4.6.3] on linux2 in 2.7, print "something" valid syntax.
in python3, not valid, print("hello...") needed here.
hope helps
gerhard
raspberrypi
Comments
Post a Comment