input: Write a function to program a web scraper in Python that extracts the latest stock prices from the Yahoo Finance website for specific stock tickers. The function should take a list of stock tickers as input and return a dictionary where the keys are the stock tickers and the values are the latest stock prices. If the stock ticker is not found on the website, the function should return a value of "N/A".
  
  import requests
  from bs4 import BeautifulSoup
  
  def get_stock_prices(stocks):
      prices = {}
      for stock in stocks:
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          try:
              price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
          except AttributeError:
              price = "N/A"
          prices[stock] = price
      return prices
  
  assert get_stock_prices(["AAPL", "MSFT", "FB", "GOOG"])=={"AAPL": "145.09", "MSFT": "266.65", "FB": "351.21", "GOOG": "2799.17"}
  assert get_stock_prices(["AMZN", "TSLA", "NVDA"])=={"AMZN": "3415.00", "TSLA": "761.84", "NVDA": "704.01"}
  assert get_stock_prices(["UNEXISTSTOCK"])=={"UNEXISTSTOCK": "N/A"}
  assert get_stock_prices([])=={}
output: def get_stock_prices(stocks):
      prices = {}
      for stock in stocks:
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          try:
              price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
          except AttributeError:
              price = "N/A"
          prices[stock] = price
      return prices