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, retrieve the HTML content, parse it using BeautifulSoup, and print the text of the first 10 articles found. If no articles are found, print an appropriate message.
  
  def retrieve_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') 
    
      # print the first 10 articles 
      if len(articles) > 0:
          for article in articles[:10]: 
              print(article.text)
      else:
          print("No articles found.")
  
  assert retrieve_recent_articles('http://example.com/news')==None
  assert retrieve_recent_articles('http://nonexistenturl.com')==None
output: def retrieve_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') 
    
      # print the first 10 articles 
      if len(articles) > 0:
          for article in articles[:10]: 
              print(article.text)
      else:
          print("No articles found.")