def paid_status(): print("\n\n") print(" PAID STATUS ") print("=======================") print(" 1)POST STATUS ") print("=======================") print(" 2)CHECK STATUS ") print("=======================") print(" 3)HOME ") print("=======================") try: pas = int(input("Enter choice ==> ")) except Exception: print("Re-enter the data with numeric value") paid_status() if pas == 1: post_status() paid_status() elif pas == 2: check_status_all() paid_status() elif pas ==3: home() else: print('invalid input')
def edits(): print("\n\n") print("EDITING CUSTOMER") print("===================") print(' 1)INSERT ROW') print('===================') print(' 2)UPDATE ROW') print('===================') print(' 3)REMOVE DATA') print('===================') print(' 4)DISPLAY') print('===================') print(' 5)HOME') print('===================') try: sws = int(input(" Enter Choice ==> ")) except Exception: print("Re-enter the data with numeric value") edits() print("=====================") if sws == 1: menu1() elif sws == 2: menu2() elif sws == 3: menu3() elif sws == 4: menu4() elif sws == 5: home() else: print('invalid input') edits()
def home(): print("\n\n") print(" HOME ") print("======================") print(" 1)EDIT CUSTOMER ") print("======================") print(" 2)PAID STATUS ") print("======================") print(' 5)EXIT ') print("======================") try: mns = int(input("Enter choice ==> ")) except Exception: print("Re-enter the data with numeric value") home() if mns == 1: edits() elif mns == 2: paid_status() elif mns == 3: exit() else: print('invalid input') home()
def auth_user(): print("\n\n") print("======================") print(" USER LOGIN ") print("======================") un = str(input('Enter Username:'******'Enter Password:'******'akash' and ps == 'akash': home() print("\n\n") else: print("Wrong username or password") auth_user()
def post_status(): print("\n\n") print(" POST STATUS ") print("=======================") print(" 1)JANAUARY ") print("=======================") print(" 2)FEBURARY ") print("=======================") print(" 3)MARCH ") print("=======================") print(" 4)APRIL ") print("=======================") print(" 5)MAY ") print("=======================") print(" 6)JUNE ") print("=======================") print(" 7)JULY ") print("=======================") print(" 8)AUGUST ") print("=======================") print(" 9)SEPTEMBER ") print("=======================") print(" 10)OCTOBER ") print("=======================") print(" 11)NOVEMBER ") print("=======================") print(" 12)DECEMBER ") print("=======================") print(" 13)HOME ") print("=======================") ins = int(input("Enter choice ==> ")) print("=======================") if ins == 1: jan_amt() post_status() elif ins == 2: feb_amt() post_status() elif ins == 3: mar_amt() post_status() elif ins == 4: apr_amt() post_status() elif ins == 5: may_amt() post_status() elif ins == 6: jun_amt() post_status() elif ins == 7: jul_amt() post_status() elif ins == 8: aug_amt() post_status() elif ins == 9: sep_amt() post_status() elif ins == 10: oct_amt() post_status() elif ins == 11: nov_amt() post_status() elif ins == 12: dec_amt() post_status() elif ins == 13: home() else: print("Invalid input") post_status()