I would like to ask if the below function could be reduced by using 1 expression with lambda function. I am trying to locate the indices of the price list to see if there is an increase in prices from the previous index
def increasePrice (prices):
templist = []
for x in range (0, len(prices)):
if (prices [x] < prices [x+1]):
templist.append(x)
return templist