input: Write a function to get the latest stock prices from specific websites using Python. The function should take a list of stock names as input and return their current prices. If a stock is not found or an error occurs, the function should return 'Price not available'.
  
  def get_stock_price(stocks):
      import requests
      from bs4 import BeautifulSoup
      
      def fetch_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          try:
              response = requests.get(url)
              response.raise_for_status()
              soup = BeautifulSoup(response.text, 'html.parser')
              price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
              return price
          except:
              return 'Price not available'
      
      return [fetch_price(stock) for stock in stocks]
  
  assert get_stock_price(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])==["150.00", "300.00", "350.00", "2500.00"]
  assert get_stock_price(["TSLA stocks"])==["700.00"]
  assert get_stock_price(["UNKNOWN stocks"])==["Price not available"]
  assert get_stock_price([])==[]
output: def get_stock_price(stocks):
      import requests
      from bs4 import BeautifulSoup
      
      def fetch_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          try:
              response = requests.get(url)
              response.raise_for_status()
              soup = BeautifulSoup(response.text, 'html.parser')
              price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
              return price
          except:
              return 'Price not available'
      
      return [fetch_price(stock) for stock in stocks]