You can run Python in two modes. Explain these two modes.
Yes, we can run python in two modes. They are script mode and interactive mode.
Script mode: Script means a system of writing. In the script mode, a python program can be written in a file. This file can then be saved and executed using the command prompt. Script mode is very suitable for writing long pieces of code.
Interactive mode: It is a way of executing a Python program in which statements are written in a command prompt and the result is obtained on the same. The interactive mode is more suitable for writing very short programs.