input: Write a function to create a web scraper using Python that retrieves the 10 most recent articles from a news website.
  
  def web_scraper():
      import requests 
      from bs4 import BeautifulSoup 
        
      # URL to scrap 
      URL = 'http://example.com/news'
        
      # get the source code 
      html_content = requests.get(URL).text 
        
      # parse the html content 
      soup = BeautifulSoup(html_content, "lxml") 
        
      # get all the articles  
      articles = soup.find_all('article') 
        
      # return the first 10 articles 
      return [article.text for article in articles[:10]]
  
  assert web_scraper() == ["Article 1 text", "Article 2 text", "Article 3 text", "Article 4 text", "Article 5 text", "Article 6 text", "Article 7 text", "Article 8 text", "Article 9 text", "Article 10 text"]
output: def web_scraper():
      import requests 
      from bs4 import BeautifulSoup 
        
      URL = 'http://example.com/news'
      html_content = requests.get(URL).text 
      soup = BeautifulSoup(html_content, "lxml") 
      articles = soup.find_all('article') 
      return [article.text for article in articles[:10]]