I have two files. One named MainMenu.py another named MissionMenu.py for a simple text game I was making. But I ran into an issue (I'm still rather new to this) that is giving me a NameError:.
The first file looks like this
from MissionMenu import *
def mainMenu():
    x = input("Type Something:")
    missionMenu()
mainMenu()
The second File looks like this
from MainMenu import *
def missionMenu():
    x = input("Type something else:")
    mainMenu()
missionMenu()
The error says NameError: name 'missionMenu' is not defined
 
     
     
    