CBSE Class 11 Computer Science Question 9 of 18

Practice Paper — Question 18

Back to all questions
18
Question

Question 18

Assertion (A): Python lists allow modifying their elements by indexes easily.

Reason (R): Python lists are mutable.

  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

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

Explanation
Python lists allow modifying their elements using indexes. This is possible because Python lists are mutable, meaning their contents can be changed after creation.

Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.