CBSE Class 12 Computer Science Question 3 of 62

Using Python Libraries — Question 3

Back to all questions
3
Question

Question 3

Assertion. If an item is imported through from <module> import <item> statement then you do not use the module name along with the imported item.

Reason. The from <module> import command modifies the namespace of the program and adds the imported item to it.

Answer

(a)

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

Explanation
The from <module> import <item> command directly imports the specified item into the current namespace. This means that the imported item becomes part of the program's namespace and can be accessed directly without using the module name.