CBSE Class 11 Computer Science Question 6 of 80

Getting Started with Python — Question 6

Back to all questions
6
Question

Question 6

Assertion (A): The shortcut key to run a Python program from script mode is F1.

Reasoning (R): Python programs/scripts are stored in files with .py extension.

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

A is false but R is true.

Explanation
The shortcut key to run a Python program from script mode is F5. Python programs/scripts are stored in files with .py or .pyw extension.