Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 25th, 2006, 1:56 PM   #1
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 160
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
code problem

Name: Whats Your Name
Author: Jimmy Straight
Date: 04/25/06
Description: This is just a test
Comment: just learning python thats all
raw_input("Press Enter Key ...") # wait
my_string = raw_input("What is your name? ")
print "your name is", my_string
raw_input("Press Enter Key ...") # wait

can some one help me with this.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 3:10 PM   #2
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 319
Rep Power: 4 andro is on a distinguished road
Send a message via AIM to andro
Help you with what..?
andro is offline   Reply With Quote
Old Apr 25th, 2006, 4:44 PM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
When presenting a piece of code that has a problem or error, it helps to give an explanation of what went wrong, or a copy of the error message thrown up by the program.

That said, the problem with your program seems fairly obvious. If you want Python to ignore a line of code, use the "#" character. Otherwise, Python will treat that line as code:
# Name: Whats Your Name
# Author: Jimmy Straight
# Date: 04/25/06
# Description: This is just a test
# Comment: just learning python thats all

raw_input("Press Enter Key ...")
my_string = raw_input("What is your name? ")
print "your name is", my_string
raw_input("Press Enter Key ...")
You might want to read through a Python tutorial before you go much further. There are quite a few Python tutorials around that will give you a good start on how to learn the language. This one seems to do a good job of teaching a non-programmer the basics.
Arevos is offline   Reply With Quote
Old Apr 25th, 2006, 11:20 PM   #4
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 160
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
ok ty.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC