KnowledgeBoat Logo

Computer Science

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.

Python Libraries

1 Like

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.

Answered By

2 Likes


Related Questions