To make real program:
Open IDLE(Python GUI)
Select File->New Window (ctrl + N)
A window will appear.
Type your program
save your file with ".py" extension.
In New Window (in which you have written your program) Goto RUN->RUN MODULE(F5)
If you want to open your existing file:
Select File->Open->Browse to the location where you have saved your python file-> select your file-> click on open
COMMENTING IN YOUR REAL PROGRAM
Commenting in your program is really a good habit.
because you may forget why a particular part of the code was written.
It also helps other programmer to easily understand and edit in program.
# THIS IS A COMMENT LINE
#THIS IS A SINGLE LINE COMMENT
'#' skips all the words written in that particular line.
''' THIS IS
A MULTILINE
COMMENT '''
Open IDLE(Python GUI)
Select File->New Window (ctrl + N)
A window will appear.
Type your program
save your file with ".py" extension.
In New Window (in which you have written your program) Goto RUN->RUN MODULE(F5)
If you want to open your existing file:
Select File->Open->Browse to the location where you have saved your python file-> select your file-> click on open
COMMENTING IN YOUR REAL PROGRAM
Commenting in your program is really a good habit.
because you may forget why a particular part of the code was written.
It also helps other programmer to easily understand and edit in program.
# THIS IS A COMMENT LINE
#THIS IS A SINGLE LINE COMMENT
'#' skips all the words written in that particular line.
''' THIS IS
A MULTILINE
COMMENT '''
No comments:
Post a Comment