I wrote the following function:
def main_menu(enter_digit):
Print(a)
Print(b)
if enter_digit = 1:
Print(hello)
main_menu(1)
But it keeps saying enter_digit
is not defined!
What am I doing wrong? I using the latest Python available.
This is the actual code that I'm running:
def Main_menu(Digit):
print("a - Objective_1")
print("b - Objective_2")
print("c - Objective_3")
print("d - Objective_4")
print("e - Objective_5")
print("f - Objective_6")
print("g - Objective_7")
print("h - Exist")
if Digit == 1:
print("hello")
Main_menu(1)
But it still says not defined?