When there is a need for modules, we import them by using a single line code. But in some cases, we need to import modules in runtime. So, in these cases, we will be using the in-built function in python for data science _import_() .
Now we will take into account certain examples for better understanding.
Note:- The function _import_ is rarely used in Python. But when we need to import modules during runtime, we need to use this function.