Page 47 - IPP-12-2024
P. 47
"To exit the program, Enter 'e': ")
if h=="p":
i=input("\n To change any department's manager,
Type as 'm' or \n"
"To change any manager's salary, Type as
's': \n"
"To change No. of employees/years in any
department, Type as 'n': ")
if i=="m":
j=input("\n Enter D.code of manager(row
number) : ")
k=input("Enter the new manager's name : ")
df4.at[j, "Managers"]=k
print("\n", df4)
print("\n MANAGER OF A DEPT 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"
if i=="s":
l=input("\n Enter D.code of manager(row
number) : ")
m=input("Enter the new salary amount : ")
df4.at[l, "Salary"]=m
print("\n", df4)
print("\n SALARY OF A MANAGER UPDATED!")
x7=input("\n Type as 'c' to continue or \n"