Saturday, February 7, 2026
Starting Python :
Python can start with using many different IDEs. Like Spyder IDE, Pycharm IDE, Anaconda IDLE Python is the standard interpreter used to writing python program.
Working Mode of Python :
Python Program can write in two mode 1) Interactive Mode and Script Mode.
Interactive Mode:
The interactive mode of pytoh use to produce instance result at python prompt. When python will start this mode will open . >>> is the python prompt.
Any python expression can write directly at thie prompt.
e.g. >>> 5 + 7
12
>>>
Script Mode:
This mode is used to write the python program in separate file & save the file with specific name with extantation .py . After save the file run or execute the file for output.
Generall progams hage mote then two ore more expression write in script mode. In script mode the file can save for feature use.
e.g
Open Python IDLE
Click New menu option from File Menu
Wrie the python program in python editor
Save the file by any valid file name
Click Run Module option of RUN menu / click F5 button
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment