# You can import modulesimportmathprint(math.sqrt(16))# => 4.0# You can get specific functions from a modulefrommathimportceil,floorprint(ceil(3.7))# => 4print(floor(3.7))# => 3# You can import all functions from a module.# Warning: this is not recommendedfrommathimport*# You can shorten module namesimportmathasmmath.sqrt(16)==m.sqrt(16)# => True# Python modules are just ordinary Python files. You# can write your own, and import them. The name of the# module is the same as the name of the file.# You can find out which functions and attributes# are defined in a module.importmathdir(math)# If you have a Python script named math.py in the same# folder as your current script, the file math.py will# be loaded instead of the built-in Python module.# This happens because the local folder has priority# over Python's built-in libraries.