Because you just declared the function and never called it. Try this:
def main_menu():
print ("This is main menu")
main_menu()
I hope this helps. Have a great day!
solved why cant i get my “def” functions to output text correctly? [duplicate]