input: Write a python function to scrape news articles from a given website and return them as a list of dictionaries.
  assert isinstance(scrape_articles('https://example.com'), list)
  assert all(isinstance(article, dict) for article in scrape_articles('https://example.com'))
  assert all('title' in article and 'content' in article for article in scrape_articles('https://example.com'))
output: def scrape_articles(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      articles = []
      for article_tag in soup.find_all('article'):
          title = article_tag.find('h1', 'h2', 'h3').get_text(strip=True)
          content = article_tag.find('p').get_text(strip=True)
          articles.append({'title': title, 'content': content})
  
      return articles