when I write my functions in mymodule and then import that show me this error:
def goodbye(name):
print(f'goodbye{name}')
def hello(name):
print(f'hello{name}')
import mymodule
mymodule.goodbye('nika')
Run
mymodule.goodbye('nika')
AttributeError: module 'mymodule' has no attribute 'goodbye'
I checked it many times but I couldn't solve it.
goodbye()is inmymodule.py. What file is theimportin?mymodulecode. Why would it need to import itself?