input: Write a function that takes a list of stock names and returns the latest stock prices by scraping them from the Yahoo Finance website. The function should print out the stock name along with its corresponding price. Use the BeautifulSoup library to parse the HTML and extract the price information.
  
  def get_stock_prices(stocks):
      import requests
      from bs4 import BeautifulSoup
      def get_stock_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
          return price
      for stock in stocks:
          price = get_stock_price(stock)
          print(f'The price of {stock} is {price}.')
  
  assert get_stock_prices(["AAPL", "MSFT", "FB", "GOOG"]) is None
  assert get_stock_prices(["TSLA", "AMZN"]) is None
  assert get_stock_prices([]) is None
output: def get_stock_prices(stocks):
      import requests
      from bs4 import BeautifulSoup
      def get_stock_price(stock):
          url = f"https://finance.yahoo.com/quote/{stock}"
          response = requests.get(url)
          soup = BeautifulSoup(response.text, 'html.parser')
          price = soup.find('div', {'class': 'My(6px) Pos(r) smartphone_Mt(6px)'}).find('span').text
          return price
      for stock in stocks:
          price = get_stock_price(stock)
          print(f'The price of {stock} is {price}.')