English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

First of all I am 14 years old total newbie to pregramming. I got bored today and decided to learn something for a change. I stumbled upon a litler guide on the net about some basic python commands for newbies . I stumbled on the command : print "Hello, world!"
I made a new txt file and written the command . I saved the file with a py extension and download the python interpreter from python.org (or atleast i think thats the thing i have downloaded) . I tried to run the file and cmd flashed for a few seconds nothing else happened . I think a box should appear instead with the text hello worl . Any help would be greatly appreciated. I offer in exchange for your help if you need a gmail invitation . If you need the invitation please leave you e-mail after you answer. Thanks in advance, Alexander

PS: Please don't insult as alot of you so called by themselves ''elite'' have started the same way i started today.

2006-11-13 03:30:29 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Try running this from the command prompt:

python yourfile.py

That should invoke the python interperter, assuming it's in your system path. You can read more about invoking the python interpeter here:

http://docs.python.org/tut/node4.html

2006-11-13 03:54:49 · answer #1 · answered by Farnsworth 3 · 1 0

I have not used python for a lengthy time period yet you want to placed a line of code that desires a reaction from the person formerly it keeps. attempt: raw_input("click enter to go out >") Stick this on the end of the code and it may not proceed until eventually the person tells it too

2016-11-29 02:33:46 · answer #2 · answered by lesure 4 · 0 0

fedest.com, questions and answers