Professional Documents
Culture Documents
print("")
print("The resulting production quantities are:")
#If the sales quantity is smaller than the stock level of the previous month,
#the production quantity is 0
if planned_sales[i] <= Current_Stock:
prod_qty_element = 0
Current_Stock = Current_Stock - planned_sales[i]
else:
#If the sales quantity is larger than the stock level of the previous month,
#the production quantity is this difference
prod_qty_element = planned_sales[i] - Current_Stock
Current_Stock = 0
#print(planned_sales)
#print(prod_qty)