input: Write a function to get the stock prices of given stock symbols by scraping the Yahoo Finance website. The function should take a list of stock symbols as input and return a list of prices corresponding to each stock symbol. If the stock symbol is invalid, return 'N/A' for that stock.
  
  def get_stock_prices(stocks):
      def get_stock_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price_tag = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'})
          if price_tag:
              return price_tag.find('span').text
          return 'N/A'
      
      return [get_stock_price(stock) for stock in stocks]
  
  assert get_stock_prices(["AAPL", "MSFT", "FB", "GOOG"])==['X', 'Y', 'Z', 'W']  # Replace X, Y, Z, W with actual scraped prices
  assert get_stock_prices(["INVALID"])==['N/A']
output: def get_stock_prices(stocks):
      def get_stock_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price_tag = soup.find('fin-streamer', {'data-field': 'regularMarketPrice'})
          if price_tag:
              return price_tag.text
          return 'N/A'
      
      return [get_stock_price(stock) for stock in stocks]