def AdminPanel(usrName, filename): print("Welcome to the software: " + usrName) operationAns = input("What action would you like to perform on the csv file: \n\n1.Add an account \n2.Delete an account \n3.Edit an account\n") if operationAns == '1': ops.Add(filename) elif operationAns == '2': ops.Delete(filename) elif operationAns == '3': ops.Edit(filename) else: print("Error: incorrect input, please enter with 1, 2 or 3 \n") AdminPanel(usrName, filename)
running = True def basicOp(): num1 = int(input("First number: ")) num2 = int(input("Second number: ")) for opch in op_choice: print(opch) choose1 = int(input("Now choose an operation... [1/2/3/4] : ")) if choose1 not in [1,2,3,4]: print("Invalid input, try again.") basicOp() elif (choose1==1): print(op.Add(num1, num2)) elif (choose1==2): print(op.Sub(num1, num2)) elif (choose1==3): print(op.Mult(num1, num2)) else: print(op.Div(num1, num2)) def rts_n_mr(): num = int(input("Type a number: ")) for mrmth1 in moremath1: print(mrmth) choose2 = int(input("Now choose any of those... [1/2/3/4] : "))