Необходимо решить задачи по Python через Jupiter book, описание задач, а также требуемый метод их выполнения есть в уже готовом документе, поэтому требуется просто написать код, согласно требуемыем данным.
-------------------------
Solve a set of questions on demand and supply in the newsvendor case using lists, tuples and dictionaries
---------------------------
Assignment Instructions
In this assignment, you will apply lists, tuples and dictionaries on the newsvendor case, which is a mathematical model in operations management and applied economics used to determine optimal inventory levels. It is typically characterised by fixed prices and uncertain demand for a number of perishable products.
In this case study, we adopt the classic problem setting with two products: A newsboy selling two types of newspapers, paper1 and paper2 . The future demands for newspapers are affected by weather conditions.