✏️ Explanatory Question

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

👁 1,025 Views
📘 Detailed Answer
1,025
Total Views
10
Related Qs
0%
Progress
💡

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.