Page 42 - IPP-12-2024
P. 42
"\n " "\n Titles: -"
"\n 1. Products" "\n 2. Departments" "\n 3. About"
"\n Password: 'p'")
a=input("\n Enter the number corresponding to the title
you want to view : ")
if a=="1":
print("\n", srs1)
b=input("\n To edit the products' list, Enter 'e' or\n"
"To display the products' details, Enter 'd' or\n"
"To go to main menu, Enter 'm' or\n" "To exit the
program, Enter 'x':")
if b=='d':
aa=input("\n To display details of smartphones, Enter
's' or\n"
"To display details of laptops, televisions,
Enter 'l' or \n"
"To display details of televisions, Enter 't'
or\n")
if aa=='s':
print("\n SmartPhones""\n ")
print("\n", df1)
bb=input("\n To display graph, Enter 'g' or\n"
"To go to main menu, Enter 'm' or\n"
"To exit the program, Enter 'e': ")
if bb=="g":
df1.plot.bar(color=["r"])
plt.title("Price Comparison of SmartPhones")
plt.xlabel=["X1","X1 Pro","X2","X2
Pro","X3","Y1","Y1 Pro","Y2","Y2+",
"Y2 Ultra","Note1","Note1 Max"]
plt.show()
x7=input("\n Type as 'c' to continue or Type
'e' to exit : ")
if x7=="e":