Can please anybody show me the bug in the code
I am trying to create a menu based calculator but the code keeps bring an error This part of code it us not yet finished. Here is the code. result = 0 def main(): print("1. Basic Math") print("2. Advanced Math") choice = input("enter choice: ") if choice == "1": result = mat() elif choice == "2": result = advanced() result = main() def mat(): print("1. Addition") print("2. Subtraction") print("3. Multplication") print("4. Remainder") print("5. Division") choice2= input("enter choice: ") if choice2 == "1": result = add() elif choice2 ==" 2": result = sub() elif choice2 == "3": result = mult() elif choice2 == "4": result = rem() elif choice2 == "5": result = div() result = mat() def add(): num1 = int(input("Enter no 1: ")) num2 = int(input("Enter no 2: ")) print(num1 + num2) result = add()