Exemplo n.º 1
0
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)