Google News
logo
Python Program to Re-naming a module
You can rename a module in Python using the `as` keyword. Here's an example:

Suppose you have a module named `my_module.py` with a function called `my_function`. You can import the module with a new name like this :
Program :
import my_module as mm

result = mm.my_function()
In this example, we import the `my_module` module with the name `mm`. We can then call the `my_function` function using the `mm` prefix.