Re: Completely noob Python query.
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.
|