We use import math when we want to use the sin function in the math library, x= math. sin(3.14).
Similar to #include header_file in C/C++, that how to import function in python. The import statement brings in code from one module into another program, where modules are files that contain python code, and modules are used to group related code in a program, instead of rewriting the code again, you can reuse the same code in different files. To import code from a module a parameter is to be followed import module name ( where the import word is the keyword and the module name is the module you want to import ).
To know more about python refer to the link https://brainly.com/question/28335400?referrer=searchResults.
#SPJ4