Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Carly's Clippers
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#Carly's Clippers

hairstyles = ["bouffant", "pixie", "dreadlocks", "crew", "bowl", "bob", "mohawk", "flattop"]

prices = [30, 25, 40, 20, 20, 35, 50, 35]

last_week = [2, 3, 5, 8, 4, 4, 6, 2]

new_prices = [price - 5 for price in prices]

total_price = 0

total_revenue = 0

for price in prices:
total_price += price
print(total_price)

average_price = total_price / len(prices)
print(f"Average Haircut Price: £{average_price}")

print(f"New Price List: {new_prices}")

for i in range(len(hairstyles)):
total_revenue += prices[i] * last_week[i]

print(f"Total Revenue: £{total_revenue}")

average_daily_revenue = total_revenue / 7
print(f"Average Daily Revenue: £{average_daily_revenue}")

cuts_under_30 = [hairstyles[i] for i in range(len(new_prices)) if new_prices[i] < 30]
print(f"Cuts Under £30: {cuts_under_30}")