Page 44 - IPP-12-2024
P. 44

plt.show()

                               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 cc=="m":

                                   x7="c"

                           elif cc=="e":

                                   print("\n PROGRAM STOPPED")

                                   break

                           else:
                                    print("\n INVALID INPUT")

                       elif aa=="t":

                          print("\n Smart TVs""\n ")

                          print("\n", df3)

                          dd=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 dd=="g":

                              df3.plot.line()

                              plt.title("Price Comparison of Smart TVs")

                              plt.show()

                              x7= input("\n Type as 'c' to continue or\n"
               "Type 'e' to exit : ")

                              if x7=="e":

                                  print("\n PROGRAM STOPPED")
   39   40   41   42   43   44   45   46   47   48   49