Skip to content
Advertisement

When you import a library in Python, where do you import it from? [closed]

When you import a library in Python, where do you import it from? For example, if you do import math, where does it come from? Why couldn’t it be included in the first place?

Advertisement

Answer

Is a module that comes with the standard library that comes by default from the python packages.

Libraries not needed by the default don’t need to be imported by default, they makes your program heavy and slow for processing.

import math – module from standard library, not needed in all programming project.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement