Page 45 - IPP-12-2024
P. 45
elif x7=="c":
x7="c"
else:
print("\n INVALID INPUT")
x7="c"
elif dd=="m":
x7="c"
elif dd=="e":
print("\n PROGRAM STOPPED")
break
else:
print("\n INVALID INPUT")
elif b=="e":
d=input("\n To add a new product, Enter 'a' or\n"
"To remove a product, Enter 'r’: ")
if d=="a":
e=input("\n Enter S.no : ")
f=input("Enter the new product name here : ")
srs1=srs1.append(pd. Series(f, index=[e]))
print("\n", srs1)
print("\n PRODUCT ADDED!")
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"
elif d=="r":