Computer Science, asked by 9527812489, 3 months ago

3. Explain the different working modes of Python.​

Answers

Answered by mrdevansh70
2

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.

Answered by harshvirsing55
2

Answer:-

Python has two working modes:-

1) \orange{\fbox{\tt Script mode}}

2) \green{\fbox{\tt Interactive mode}}

Explanation:-

1) \orange{\fbox{\tt Script mode}} :- 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) \green{\fbox{\tt Interactive mode}} :- 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.

\orange{\tt Hope it will} \green{\tt help you.}

Similar questions