Why we should not use import *?

Using import * in python programs is considered a bad habit because this way you are polluting your namespace , the import * statement imports all the functions and classes into your own namespace, which may clash with the functions you define or functions of other libraries that you import.

Read more

Can we import default package?

You can import a default package to a default package class only . If you do so for another package, then it shall be a compilation error. This is incorrect. There is no syntax that will allow you to name a class in the default package in an import statement.7 Kas 2011

Read more