input: Write a function to extract the latest stock prices from specific websites using a web scraper in Python. The function should take a list of stock names as input and print the current prices of each stock. 
  def get_stock_price(stocks):
      import requests
      from bs4 import BeautifulSoup
  
      for stock in stocks:
          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
          print(f'The price of {stock} is {price}.')
  
  assert get_stock_price(["AAPL stocks", "MSFT stocks", "FB stocks", "GOOG stocks"])
output: def get_stock_price(stocks):
      import requests
      from bs4 import BeautifulSoup
  
      for stock in stocks:
          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
          print(f'The price of {stock} is {price}.')