User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 426,013 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,588 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 317 | Replies: 9 | Solved
Reply
Join Date: May 2008
Posts: 12
Reputation: adarshcu is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
adarshcu adarshcu is offline Offline
Newbie Poster

compltely new to python

  #1  
Jul 20th, 2008
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??
Last edited by adarshcu : Jul 20th, 2008 at 2:29 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 12
Reputation: adarshcu is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
adarshcu adarshcu is offline Offline
Newbie Poster

Re: compltely new to python

  #2  
Jul 20th, 2008
also when i use d same in command line interface i get the output properly..
but not in IDLE...
wy is it so?
Reply With Quote  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: compltely new to python

  #3  
Jul 20th, 2008
Maybe you have a typo in the IDLE shell.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Join Date: Aug 2005
Posts: 1,133
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 66
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Veteran Poster

Re: compltely new to python

  #4  
Jul 20th, 2008
This is one way to produce a syntax error:
pint " Hello Cu Python!"
or ...
Print " Hello Cu Python!"

Remember Python is case sensitive.
Last edited by Ene Uran : Jul 20th, 2008 at 8:17 am.
drink her pretty
Reply With Quote  
Join Date: May 2008
Posts: 12
Reputation: adarshcu is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
adarshcu adarshcu is offline Offline
Newbie Poster

Re: compltely new to python

  #5  
Jul 20th, 2008
actually i ve pasted the exact copy of d statement from the IDLE shell.. so i don think these 2 syntax errors do exist..
Reply With Quote  
Join Date: May 2008
Posts: 12
Reputation: adarshcu is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
adarshcu adarshcu is offline Offline
Newbie Poster

Re: compltely new to python

  #6  
Jul 20th, 2008
wat is typo?
Reply With Quote  
Join Date: Aug 2005
Posts: 1,133
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 66
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Veteran Poster

Re: compltely new to python

  #7  
Jul 20th, 2008
Originally Posted by adarshcu View Post
wat is typo?

Slang for typing error!
drink her pretty
Reply With Quote  
Join Date: Aug 2005
Posts: 1,133
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 66
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Veteran Poster

Re: compltely new to python

  #8  
Jul 20th, 2008
Originally Posted by adarshcu View Post
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.
drink her pretty
Reply With Quote  
Join Date: Jul 2008
Posts: 11
Reputation: tomleo is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
tomleo tomleo is offline Offline
Newbie Poster

Re: compltely new to python

  #9  
Jul 20th, 2008
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.
Reply With Quote  
Join Date: May 2008
Posts: 12
Reputation: adarshcu is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
adarshcu adarshcu is offline Offline
Newbie Poster

Re: compltely new to python

  #10  
Jul 20th, 2008
thnx ppl.. i jus reinstalled the whole thing..
works fine now..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Python Forum

All times are GMT -4. The time now is 1:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC