Computer Science, asked by wannaone9, 11 months ago

difference between interactive mode and script mode

Answers

Answered by orangesquirrel
607

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.

Answered by mindfulmaisel
196

"In Python, there are two modes. They are interactive and script.

Usually, the "normal mode" is the script and ends with a .py file and runs through the interpreter of Python. In this mode, we can run all the codes in a single file.

"Interactive mode" is a "command line shell" that provides instant feedback for every statement when running the statements. This mode is takes less time compared to script mode."

Similar questions