KnowledgeBoat Logo

Computer Science

Assertion. Python offers two statements to import items into the current program : import and from <module> import, which work identically.

Reason. Both import and from <module> import bring the imported items into the current program.

Python Libraries

4 Likes

Answer

(e)

Both Assertion and Reason are false or not fully true.

Explanation
The import <module> statement imports the entire module into the new namespace setup with same name as that of module, while the from <module> import <item> statement imports specific items from the module into the current namespace. Hence, they both are different statements.

Answered By

1 Like


Related Questions