input: from typing import List
  
  
  def retrieve_top_articles(URL: str) -> List[str]:
      """Creates a web scraper using Python to retrieve and print the texts of the first 10
      recent articles from a given news website URL.
      >>> retrieve_top_articles('http://example.com/news')
      ['Text of article 1', 'Text of article 2', ..., 'Text of article 10']
      """
      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')
  
      # return the texts of the first 10 articles 
      return [article.text for article in articles[:10]]
output:     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')
  
      # return the texts of the first 10 articles 
      return [article.text for article in articles[:10]]