3. Explain the different working modes of Python.
Answers
Answer:
Python has two basic modes: script and interactive. The normal mode is the mode where the scripted and finished . py files are run in the Python interpreter. Interactive mode is a command line shell which gives immediate feedback for each statement, while running previously fed statements in active memory.
Answer:-
Python has two working modes:-
1)
2)
Explanation:-
1) :- In script mode, instructions are given in front of Python prompt(e.g., >>> or In[ ]: prompts) in Python Shell.Python carries out the given instruction and shows the result there itself.
2) :- In interactive mode, Python instructions are stored in a file generally with .py extension and are executed together in one go as a unit. The saved instructions are known as Python script or Python program.
✨