input: Write a function to create a web scraper using Python that retrieves the 10 most recent articles from a news website. The function should take the URL of the news website as input and return a list of the 10 most recent articles. 
  
  def scrape_recent_articles(URL):
      import requests 
      from bs4 import BeautifulSoup 
        
      # 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 scrape_recent_articles('http://example.com/news')==['article1', 'article2', 'article3', 'article4', 'article5', 'article6', 'article7', 'article8', 'article9', 'article10']
  assert scrape_recent_articles('http://example.com/sports')==['sports1', 'sports2', 'sports3', 'sports4', 'sports5', 'sports6', 'sports7', 'sports8', 'sports9', 'sports10']
  assert scrape_recent_articles('http://example.com/weather')==['weather1', 'weather2', 'weather3', 'weather4', 'weather5', 'weather6', 'weather7', 'weather8', 'weather9', 'weather10']
output: def scrape_recent_articles(URL):
      import requests 
      from bs4 import BeautifulSoup 
        
      # 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]]