.diffrence between interactive mode and script mode
Answers
Answer:
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.
Answer:
Interactive Mode and Script Mode are the two main modes which are used in Python Programming Language.
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. It runs very quickly and gives the output instantly.
Script Mode, on the other hand , is used when the user is working with more than one single code or a block of code.
It takes more time to compile. In this mode, one can simply write all the lines of code in a text file.