✏️ Explanatory Question

What is the difference between interactive mode and script mode in Python?

👁 1,030 Views
📘 Detailed Answer
💡

Answer with Explanation

In interactive mode, instructions are given in front of Python prompt (>>>) in Python Shell. Python carries out the given instructions and shows the result there itself. In script mode, Python instructions are stored in a file, generally with .py extension, and executed together in one go as a unit. The saved instructions are known as Python script or Python program.