I want to make a user made function library filled with custom functions to use in other codes without having to write all the code and just importing the file, i have defined a function called hello() which prints hello, however when i try to call it in my secondary file it say the hello() is not defined.
'python library.py'
def hello():
print("Hello")
'library test.py'
myfile = open('python library.py', 'a')
hello()