Skip to content

Instantly share code, notes, and snippets.

@shubham5062666
Created December 13, 2023 11:55
# Organizing code for readability
def calculate_total_cost(item_prices, tax_rate):
subtotal = sum(item_prices)
tax = subtotal * tax_rate
total_cost = subtotal + tax
return total_cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment