Trying to link Two files in Sublime:
main.py
<code>import module
def main():
module.greet("Linda")
if __name__ == "__main__":
print("This is the Main.py file")
main()
</code>
<code>import module
def main():
module.greet("Linda")
if __name__ == "__main__":
print("This is the Main.py file")
main()
</code>
import module
def main():
module.greet("Linda")
if __name__ == "__main__":
print("This is the Main.py file")
main()
and
module.py
<code>def greet(name):
print(f"Hello, {name}!")
if __name__== "__main__":
print("This is the module.py file.")
</code>
<code>def greet(name):
print(f"Hello, {name}!")
if __name__== "__main__":
print("This is the module.py file.")
</code>
def greet(name):
print(f"Hello, {name}!")
if __name__== "__main__":
print("This is the module.py file.")
Error Received:
ModuleNotFoundError: No module named ‘module’
How do I correct this? What am I doing wrong?