dosyanın adi su şekilde ol maliymiş
__moduleadi__.py
bu durumda
__hesamodulu__.py
def sayHello()
print("hello world")
diğer dosyada
import hesamodulu
hesamodulu.sayHello() // hello world
not: acaba typo yapıp hesapmodulu nu import etmek yerine hesamodulu nümü import etmeye çalışıyor olabilir misin?
edit: En değerli kaynak her zaman dokümantasyonlardır dokümantasyon okumaktan çekinmeyin. Eğer bir videodan öğrenmeye çalışmaya çalışıyorsanız, zamanla o kisim değişmiş yada depreced olmuş olabilir.
https://docs.python.org/3/tutorial/modules.html