input:  
  def scrape_recent_articles():
      """Create a web scraper using Python that retrieves the 10 most recent articles from a news website.
      Example:
      for scrape_recent_articles()
      Out[1]: 
      'Latest article 1 heading\nLatest article 1 body\nLatest article 2 heading\nLatest article 2 body\nLatest article 3 heading\nLatest article 3 body\nLatest article 4 heading\nLatest article 4 body\nLatest article 5 heading\nLatest article 5 body'
      """
  
  import requests 
  from bs4 import BeautifulSoup 
    
  # URL to scrap 
  URL = 'http://example.com/news'
    
  # 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)
  
output:     result = []
      for article in articles[:10]:
          heading = article.find('h2').text.strip()
          body = article.find('p').text.strip()
          result.append(f"{heading}\n{body}")
      return "\n".join(result)