input: Write a function to create a web scraper using Python that retrieves the 10 most recent articles from a given news website URL. The function should print the text of these articles. If there are fewer than 10 articles, it should print all available articles.
  def scrape_news(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 scrape_news('http://example.com/news') # Should print the text of the 10 most recent articles
  assert scrape_news('http://example.com/few_articles') # Should print the text of all available articles, if fewer than 10
output: def scrape_news(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)