If I have the following directory structure:
Folder1/
└─ Folder2/
──── a.py
──── b.py
└─── test/
────── c.py
a.py
import b
def say_hello():
print("Hello World")
def main():
say_hello()
if __name__ == '__main__':
main()
b.py
def say_bye():
print('bye!')
c.py
from hello import a
if __name__ == '__main__':
a.say_hello()
I'm trying to run c.py But I get this error message:
import b
ModuleNotFoundError: No module named 'b'
what did I do wrong here?