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 the URL of the news website as input, scrape the articles, and print the text of the first 10 articles.
  def web_scraper(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)
  
  assert web_scraper('http://example.com/news') is None
output: def web_scraper(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)