Page 48 - IPP-12-2024
P. 48

"Type 'e' to exit: ")

                                 if x7=="e":

                                   print("\n PROGRAM STOPPED")

                                 elif x7=="c":
                                   x7="c"

                                 else:

                                   print("\n INVALID INPUT")

                                   x7="c"

                           elif i=="n":
                               n=input("\n Enter the D.code of
               departments(row number) : ")

                               o=input("Enter the number of
               employees/employers : ")

                               df4.at[n, "No.of Employees/Employers"]=o

                               print("\n", df4)

                               print("\n NO.OF EMPLOYEES/YEARS UPDATED!")
                               x7=input("\n Type as 'c' to continue or \n"
               "Type 'e' to exit : ")

                               if x7=="e":

                                   print("\n PROGRAM STOPPED")

                               elif x7=="c":

                                   x7="c"
                               else:

                                   print("\n INVALID INPUT")

                                   x7="c"

                           else:

                               print("\n INVALID INPUT")
                       elif h=="c":

                           x7="c"

                       elif h=="e":

                           print("\n PROGRAM STOPPED")

                           break
   43   44   45   46   47   48   49   50   51   52   53