Can somebody explain to me what is wrong with this code?
def get_returns(prices):
returns =
for i in range(len(prices)):
log_return = calculate_log_return(prices[i], prices[i + 1])
returns.append(log_return)
return returns
amazon_returns = get_returns(amazon_prices)
ebay_returns = get_returns(ebay_prices)