-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClippers.py
More file actions
28 lines (18 loc) · 710 Bytes
/
Clippers.py
File metadata and controls
28 lines (18 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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]
total_price = 0
for price in prices:
total_price += price
average_price = total_price / len(prices)
print("Average haircut price: ", average_price)
new_prices = [price - 5 for price in prices]
print(new_prices)
total_revenue = 0
for index in range(len(hairstyles)):
total_revenue += prices[index] * last_week[index]
print(total_revenue)
average_daily_revenue = total_revenue / 7
print(average_daily_revenue)
cuts_under_30 = [hairstyles[num] for num in range(len(hairstyles)) if new_prices[num] < 30]
print(cuts_under_30)