input: Write a function to retrieve the 10 most recent articles from a specified news website URL using Python with the help of the requests and BeautifulSoup libraries. 
  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') == ['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 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]]