We can import the definitions inside a module to another module. We use the import keyword to do this. To import the module factorial we type the following in the Python prompt.
>>> import factorial
Using the module name we can access the functions defined inside the module. The dot(.) operator is used to access the functions. The syntax for accessing the functions from the module is .
For example:
>>> factorial.fact(5)
120