From my knowledge that i learn from previous chapter of using list comprehension is like:
usernames = [word for word in words if word == '@']
But i have some confusion, the way how they use list comprehension
cuts_under_30 =[hairstyles[x] for x in range(len(new_prices)) if new_prices[x] < 30]
someone please explain me, i know the objective is to return a list of hairstyles that are priced below 30$.
Here is exercise link: