0

hi..
i was following the program in d tutorias given in daniweb thread.
i typed
print " Hello Cu Python!"
in the IDLE ..
but i get an error as invalid syntax ?
can anyone tell me the change to be done??

4
Contributors
9
Replies
10
Views
9 Years
Discussion Span
Last Post by adarshcu
0

also when i use d same in command line interface i get the output properly..
but not in IDLE...
wy is it so?

0

This is one way to produce a syntax error:
pint " Hello Cu Python!"
or ...
Print " Hello Cu Python!"

Remember Python is case sensitive.

0

actually i ve pasted the exact copy of d statement from the IDLE shell.. so i don think these 2 syntax errors do exist..

0

actually i ve pasted the exact copy of d statement from the IDLE shell.. so i don think these 2 syntax errors do exist..

Strange, works just fine for me in either the IDLE editor or the shell.

0

It absolutely should work and because you said it works in the command line then it is not a problem with your syntax or python. Their is just something wrong with IDLE. With that said maybe a re-install would fix the problem.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.