Robotics & Artificial Intelligence

Assertion (A): Python works in two different modes. These modes are used as per the need of the user while performing the tasks.

Reason (R): Interactive mode refers to the mode where the user is able to see the instant output for the given input. Whereas, the script mode is used only when the user needs to make a program file.

Based on the above discussion, choose an appropriate statement from the options given below:

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true and R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
  5. Both A and R are false.

Getting Started

1 Like

Answer

Both A and R are true and R is the correct explanation of A.

Reason — Python works in two different modes namely Interactive mode and Script mode. The interactive mode allows the user to obtain instant output by typing a command at the Python prompt (>>>) and pressing 'Enter'. The script mode allows the user to write and save a complete set of instructions as a program file. Hence, the reason correctly explains the assertion.

Answered By

2 Likes


Related Questions