![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Since you are using windows you can simply use the notepad.exe (in the windows folder) editor. Once it is up, type the following:
print "I am new to Python"
raw_input("Press Enter Key ...") # waitOnce saved, find test1.py and double click it.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#12 |
|
Hobbyist Programmer
|
i did and a black box came up with nothing in it.
|
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Try clicking on your windows "start" button, then selecting "All Programs" and look for a submenu labelled "Python 2.4". Go into this submenu, and you should see a menu item called "IDLE (Python GUI)". Click on this, and you should get a Python interpretor and editor window.
|
|
|
|
|
|
#14 | |
|
Hobbyist Programmer
|
Quote:
|
|
|
|
|
|
|
#15 |
|
Hobbyist Programmer
|
i read this tut but cold death and i have learn somethings from it. http://www.programmingforums.org/for...ead.php?t=7099.
|
|
|
|
|
|
#16 |
|
Hobbyist Programmer
|
i have tryed to make a little thing on my own but i am stuck.
my_string = raw_input("How old are you? ")
print "your age", my_stringi know i am missing something but i cant figure out what it is. |
|
|
|
|
|
#17 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Should work just fine with IDLE.
If you run it by double clicking the saved python file ( .py extension), then you need to add something to stop the console display at the end: my_string = raw_input("How old are you? ")
print "your age", my_string
raw_input("Press Enter Key ...") # wait
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#18 |
|
Hobbyist Programmer
|
well when you type how old you are it doesnt print the age out.
|
|
|
|
|
|
#19 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
The official Python tutorial is also a good place to start.
|
|
|
|
|
|
#20 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|