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, 10:10 AM   #11
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
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 ...")  # wait
then save this as test1.py in some folder where you can find it again.

Once saved, find test1.py and double click it.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Apr 25th, 2006, 10:13 AM   #12
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
i did and a black box came up with nothing in it.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 10:21 AM   #13
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Apr 25th, 2006, 10:25 AM   #14
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
Quote:
Originally Posted by Arevos
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.
i have this stuff installed on a school computer can i cant install it to the menu. i have my own little hard drive and i have it installed to that.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 10:26 AM   #15
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
i read this tut but cold death and i have learn somethings from it. http://www.programmingforums.org/for...ead.php?t=7099.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 10:31 AM   #16
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
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_string

i know i am missing something but i cant figure out what it is.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 10:39 AM   #17
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
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!
Dietrich is offline   Reply With Quote
Old Apr 25th, 2006, 10:41 AM   #18
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
well when you type how old you are it doesnt print the age out.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Apr 25th, 2006, 10:42 AM   #19
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
The official Python tutorial is also a good place to start.
Arevos is offline   Reply With Quote
Old Apr 25th, 2006, 10:44 AM   #20
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by demon101
well when you type how old you are it doesnt print the age out.
That's probably because the program is quitting before you have a chance to read the age you entered. Try Dietrich's code out with the extra "raw_input" line at the end.
Arevos 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 11:41 AM.

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