Im thinking coding isnt for me. I dont understand hardly any of it. I thought I was getting the hang of it till I ran into loops. Im on https://www.codecademy.com/courses/learn-python-3/projects/python-carlys-clippers AND it just absolutely showed me I know nothing. If I Cant even do these tasks why am I here?
I literally only maybe got 3 tasks correct on my own without looking, like the easy stuff.
Im not looking for support and hugs but to see if anyone has felt like this?, does it get easier? will I ever be able to stare at a instructional paragraph and put this stuff together?
I feel like im in some really basic stuff and im having such a hard time figuring it out.
Task 7 - 13 I dont understand the use of [i] or what the instructions are telling me to do.
Here is my code, the commented out is what I originally wrote
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 total_prices:
for price in prices:
total_price += price
average_price = total_price / len(prices)
print(“Average Haircut Price:”, average_price)
#new_prices = [prices in prices for prices - 5]
new_prices = [price - 5 for price in prices]
total_revenue = 0
for i in range(len(hairstyles)):
total_revenue += prices[i] * last_week[i]
#print(“Total Revenue:”, total_revenue)
average_daily_revenue = total_revenue / 7
#cuts_under_30 = [len(new_prices) -1 for range(i) in hairstyles[i]]