Computer Science, asked by kriti0824, 9 days ago

2. What is the difference between the interactive mode and the Script mode of Python?​


Answered by ammukavitha620


The interactive mode involves running your codes directly on the Python shell which can be accessed from the terminal of the operating system. In the script mode, you have to create a file, give it a name with a . py the extension then runs your code. The interactive mode is suitable when running a few lines of code.

Answered by Anonymous



The basic differences between these two modes are as follows:

Interactive mode is used when an user wants to run one single line or one block of code.

Script Mode, on the other hand , is used when the user is working with more than one single code or a block of code.

Similar questions