Ответ:
def calculate_total_cost(price_notebook, price_cover, quantity):
return (price_notebook + price_cover) * quantity
price_notebook = 12.14
price_cover = 1.25
quantity = 10
total_cost = calculate_total_cost(price_notebook, price_cover, quantity)
print("The total cost of", quantity, "notebooks and covers is: {:.2f}".format(total_cost))
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
def calculate_total_cost(price_notebook, price_cover, quantity):
return (price_notebook + price_cover) * quantity
price_notebook = 12.14
price_cover = 1.25
quantity = 10
total_cost = calculate_total_cost(price_notebook, price_cover, quantity)
print("The total cost of", quantity, "notebooks and covers is: {:.2f}".format(total_cost))
Объяснение: