Class - 12 CBSE Computer Science — Assertion Reason Type Questions
Assertion(A): Python Standard Library consists of various modules.
Reasoning(R): A function in a module is used to simplify the code and avoids repetition.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, and R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Python Libraries
2 Likes
Answer
Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
Reason — The Python Standard Library is a collection of modules and packages that provide a wide range of functionalities. A function in a module helps to organize code, simplify it, and avoid repetition which makes programming more efficient.
Answered By
1 Like