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??

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

Member Avatar for iamthwee

Maybe you have a typo in the IDLE shell.

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

Remember Python is case sensitive.

wat is typo?

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

wat is typo?

Slang for typing error!

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.

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.

thnx ppl.. i jus reinstalled the whole thing..
works fine now..

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.