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 a URL as input, parse the HTML content, and return the text of the first 10 articles. If there are fewer than 10 articles, it should return the text of all available articles. If no articles are found, it should return an empty list.
  
  
  def get_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') 
      
      # get the text of the first 10 articles
      recent_articles = [article.text for article in articles[:10]]
      
      return recent_articles
  
  assert get_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']
  assert get_recent_articles('http://example.com/few-articles') == ['Article 1 text', 'Article 2 text', 'Article 3 text']
  assert get_recent_articles('http://example.com/no-articles') == []
  
output: def get_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') 
      
      # get the text of the first 10 articles
      recent_articles = [article.text for article in articles[:10]]
      
      return recent_articles