Example #1
0
            print("(demand)", "\n")
            pprint(seller.find_demand())

        elif command == "3":
            print("(trend)", "\n")
            for product in seller.get_trend():
                print(product)

        elif command == "4":
            print("(sellers)", "\n")
            print("Categories:\n")
            for category in categories:
                print(category)
            print('\n')
            ctgr = input("Choose category from given list: ")
            pprint(seller.get_best_sellers(ctgr))

        elif command == "5":
            print("(statistic)", "\n")
            print("Print type of product")
            print("F.e.: 'phone charger'")
            product = input("Product: ")
            pprint(seller.get_product_statistic(product))

        elif command == "6":
            print("(recommendations)", "\n")
            print("Give me a list of your products using their id.")
            print("F.e.: 32922653638, 32954832491")
            products = input("Products: ").split(", ")
            list_of_products = list(map(lambda id: int(id), products))
            print(list_of_products)