The below code is working fine for the stocks max profit question, any thoughts if this is an efficient way or could there be a better approach:
x =[7,2.5,13,11,19,11,9,10]
min = 0
max = len(x) -1
y = sorted(x)
while (y[max] > y[min]) and (x.index(y[max]) < x.index(y[min])) :
min = min + 1
print ("max_profit: ",y[max] - y[min])