Computer Science, asked by archishas567, 5 months ago

EXPLAIN THE SCRIPT MODE IN PHYTHON ... WITH AN EXAMPLE ...​

Answers

Answered by sameeha343
4

Answer:

Script mode is the way to go in such cases. In script mode, You write your code in a text file then save it with a . py extension which stands for "Python". ... After writing your code, you can run it by clicking "Run" then "Run Module" or simply press F5.

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.

Answered by Anonymous
3

Answer:

In script mode, You write your code in a text file then save it with a . py extension which stands for "Python". ... If you are in the standard Python shell, you can click "File" then choose "New" or simply hit "Ctrl + N" on your keyboard to open a blank script in which you can write your code.

hope it helps you

please thank my answers

Similar questions