CBSE Class 11 Computer Science Question 46 of 63

Introduction to Python Modules — Question 15

Back to all questions
15
Question

Question 15

Why is from import* statement not recommended for importing Python modules in an external program?

Answer

Using from module_name import * is not recommended because it can lead to namespace pollution, reduce code readability, introduce unnecessary imports, and increase the risk of errors due to unintended or conflicting names.