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.