Informatics Practices

Assertion (A): Comments are non-executable statements that enable the users to understand the program logic.

Reasoning (R): Comments are basically statements used to put remarks. The comments are used to explain the code and to make it more informative for the users.

  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.

Python Funda

1 Like

Answer

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

Explanation
Comments are statements in a script that are ignored by the Python interpreter. Comments are basically statements used to put remarks and are used to explain the code and to make it more informative for the users. They make the code more readable and understandable for human beings.

Answered By

2 Likes


Related Questions