Import function from other file
# File: my_module.py
def my_function():
print("Hello from my_function!")
# File: main.py
from my_module import my_function
# Call imported function
my_function() # Output: Hello from my_function!
```python
import sys
sys.path.append('./Basics/')
from Basics import calculator
calculator.demo(name="hado")
```Last updated