def resp_process(r):
    '''Process the response from user input (L1)'''
    if str(r).isdigit() == 1 and int(r) >= 0 and int(r) <= 5:
        if r == '1':
            add_rec()
        elif r == '2':
            edit_rec()
        elif r == '3':
            del_rec()
        elif r == '4':
            show_all()
#        elif r == '5':
#            show_summ()
        else:
            exit()
    else:
        print "You have enter an invalid input\n"
        time.sleep(2)
        # return to main menu
        main_menu()
Process the response from user input (L1)
recipes/Python/496762_Personal_Finance_Assistance/recipe-496762.py