I understood each task in this project until I got to task #12. Here is a screenshot of the task and the hint associated with this task:
And here is the code I wrote for this task (which is correct, I believe - I watched the Project Walkthrough to see the answer but still didn’t completely understand the explanation):
cuts_under_30 = [hairstyles[i] for i in range(len(new_prices)) if new_prices[i] < 30]
I think what I don’t really understand is the range part of this code. I’m a little confused about the
i variable and the indexes as well. If someone could explain this task to me I would really appreciate it!