Difference between interactive mode and script mode.
Script Mode, is used when the user is working with more than one single code or a block of code. Interactive mode is used when an user wants to run one single line or one block of code. If one needs to write a long piece of Python code or if the Python script spans multiple files, interactive mode is not recommended. In script mode, You write your code in a text file then save it with a .py extension.