input: from typing import List
  
  def predict_stock_price(daily_prices: List[float]) -> float:
      """ Predicts the stock price for the next day based on a given trajectory of stock prices.
      >>> predict_stock_price([10, 10.4, 10.5, 10.6, 10.7, 10.9, 11])
      11.01
      """
output:     n = len(daily_prices)
      if n < 2:
          return daily_prices[-1]
      
      slope = (daily_prices[-1] - daily_prices[0]) / (n - 1)
      next_price = daily_prices[-1] + slope
      
      return round(next_price, 2)