![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
|
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 ...") # waitcan some one help me with this. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Help you with what..?
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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 ...") |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
ok ty.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|