Executing Python Scripts :
Now to execute your python script simply open command promt by
press windows key > type cmd > hit enter

now simply type the name of the script we made in our previous chapter
"sum.py"
and bingo the output is displayed.
Similarly you can start writing more scripts like subtracting, division etc etc.
Now to execute your python script simply open command promt by
press windows key > type cmd > hit enter
Now the windows command prompt will appear right in front of you.
This is the terminal where you are going to see your output and execute your code
Lets begin executing our code.
Type the commands displayed in the screen or point cmd to the place where
you have saved your SUM.PY file ......
in my case i have saved it in the same directory
HOWEVER you must not do this ( this is just to show how to execute)
try making a scripts in different folder)
This is the terminal where you are going to see your output and execute your code
Lets begin executing our code.
Type the commands displayed in the screen or point cmd to the place where
you have saved your SUM.PY file ......
in my case i have saved it in the same directory
HOWEVER you must not do this ( this is just to show how to execute)
try making a scripts in different folder)

now simply type the name of the script we made in our previous chapter
"sum.py"
and bingo the output is displayed.

Similarly you can start writing more scripts like subtracting, division etc etc.

No comments:
Post a Comment