input: Write a function that creates a web scraper using Python to retrieve the 10 most recent articles from a specified news website. The function should take the URL of the news website as input, retrieve the HTML content, parse it using BeautifulSoup, and print the text of the first 10 articles found on the page. If there are fewer than 10 articles, it should print all available 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') 
        
      # print the first 10 articles 
      for article in articles[:10]: 
          print(article.text)
          
  # Test cases
  scrape_recent_articles('http://example.com/news')
  
  # Expected output:
  # The first 10 articles from the given URL should be printed.
  
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') 
        
      # print the first 10 articles 
      for article in articles[:10]: 
          print(article.text)