input: Write a function to create a web scraper using Python that retrieves the 10 most recent articles from a specified news website URL. The function should print the text content of the first 10 articles found. If the URL is invalid or the articles cannot be found, the function should print an error message.
  
  def get_recent_articles(URL):
      try:
          # 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') 
          
          # print the first 10 articles 
          for article in articles[:10]: 
              print(article.text)
      except:
          print("Error: Unable to retrieve articles from the specified URL.")
  
  
  assert get_recent_articles('http://example.com/news')  # Should print the text of the first 10 articles found
  assert get_recent_articles('http://invalid-url.com')  # Should print "Error: Unable to retrieve articles from the specified URL."
output: def get_recent_articles(URL):
      try:
          # 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') 
          
          # print the first 10 articles 
          for article in articles[:10]: 
              print(article.text)
      except:
          print("Error: Unable to retrieve articles from the specified URL.")