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 source code, parse the HTML content using BeautifulSoup, and print the text of the first 10 articles found.
  def scrape_recent_articles(url: str) -> None:
      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 text of the first 10 articles 
      for article in articles[:10]: 
          print(article.text)
  
  assert scrape_recent_articles('http://example.com/news') is None
  assert scrape_recent_articles('http://anothernews.com/topstories') is None
output: def scrape_recent_articles(url: str) -> None:
      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 text of the first 10 articles 
      for article in articles[:10]: 
          print(article.text)