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 it, and print the text of the first 10 articles.
  assert scrape_articles('http://example.com/news')
  assert scrape_articles('http://example2.com/news')
output: def scrape_articles(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      
      articles = soup.find_all('article')[:10]
      for article in articles:
          print(article.get_text())