I have a function and I\'m making another one in which I need to call the first function. I don\'t have experience in Python, but I know that in languages like MATLAB it\'s
2 way to use a function within an other:
square() function in another .py file (ex: myfile.py) and then, you can import the function this way:from myfile import square
def newFunction():
square()
import and you can use square() directly.