Assignment 2
Assignment 2
I've made a function called print_circum that figures out and shows the circumference of a circle
when you tell it the circle's radius. I tried it with different radii:
def print_circum(radius):
print_circum(5)
print_circum(7.5)
print_circum(10)
item_prices = {
"Item1": 10.00,
"Item2": 15.00,
"Item3": 20.00
total_cost = 0
total_cost *= 0.9
total_cost *= 0.9
return total_cost
# Example usage:
item1_quantity = 2
item2_quantity = 1
item3_quantity = 0
This code defines a calculate_total_cost function that calculates the total cost of items based on
the given quantities and applies discounts as specified in your scenario. You can adjust
item1_quantity, item2_quantity, and item3_quantity to simulate different purchases.