List comprehensions use for loops to iterate through each element of the original list, like here with for price in prices.
for
for price in prices
Make sure to type for price in prices.