SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Y Daniel Lang
Chapter:
To Computers Programs And Python
Exercise:
Check Point
Question:24 | ISBN:978013274719 | Edition: 6

Question

You can run Python in two modes. Explain these two modes.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

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.

0 0

Discussions

Post the discussion to improve the above solution.