CBSE Class 12 Computer Science Question 4 of 62

Using Python Libraries — Question 4

Back to all questions
4
Question

Question 4

Assertion. Python's built-in functions, which are part of the standard Python library, can directly be used without specifying their module name.

Reason. Python's standard library's built-in functions are made available by default in the namespace of a program.

Answer

(a)

Both Assertion and Reason are true and Reason is the correct explanation of Assertion.

Explanation
Python's built-in functions such as print(), len(), range() etc, are automatically added to the program's namespace from the Python's standard library. They can be used directly without importing any modules or specifying their module name.