DIGIT-ARC read-only archive · snapshot: July 23, 2026

Completely noob Python query.

6 posts · originally from https://geek.digit.in/community/threads/completely-noob-python-query.129745/

Psychosocial
Psychosocial Original post #1
Jul 17, 2010 at 8:43 PM
So I thought of learning programming and thought that Python is the easiest and the simplest to begin with. I got around writing the Hello World script but the problem is when I save and run the file, nothing happens. The Python command shell should open showing 'Hello World' but nothing happens. The command line opens and closes in a flash. This was what happened to me when I tried to learn Python before a few months too! What's the damn problem ? I am on Win7 32Bit and using Python 3.1. Using Notepad++ to code but that's not the prob coz I even tried to do it with the Python GUI but it gave the same result.

Any helps ?
L
Jul 17, 2010 at 10:08 PM
dont click the scripts
use the command prompt to execute them
Psychosocial
Jul 17, 2010 at 11:37 PM
How ? Sorry but am a really stupid beginneer.
A
Jul 18, 2010 at 12:21 AM
hey there are many ways of doing so,
1st is open Python's IDLE, then go to File--> Open (or something like that). Open ur Python script, then go to Run --> Run Module. This will run ur program.

2nd is copy your script to Pythons folder. Then run Python and enter "from script.py import *'' or ''import script.py'', where script.py is your script's name

3rd is u can go to command prompt. by typing 'cmd' in Run, then type '' python scriptpath.py'' here scriptpath.py is your scripts path and filename.

also in step 2nd and 3rd remember to add .py as extension.

actually flash just displays the output and closes in no time. i will recommend u to use IDLE to code python's programs, using any other editor may create some indentation problems.
Psychosocial
Jul 18, 2010 at 9:23 AM
Woah thanks man! Will try them!

---------- Post added at 09:23 AM ---------- Previous post was at 09:22 AM ----------

EDIT ...lol the first solution itself worked! Thanks a lot!
A
Jul 25, 2010 at 3:05 PM
ur welcome. :)