input: Write a python function to scrape the latest 10 news articles from a given URL and return a list of dictionaries with article titles and URLs.
  assert scrape_articles('https://www.example.com') == [{'title': 'Article 1', 'url': 'https://www.example.com/article1'}, {'title': 'Article 2', 'url': 'https://www.example.com/article2'}, ...]  # Add more article dictionaries as needed for testing
  assert len(scrape_articles('https://www.example.com')) == 10
  assert isinstance(scrape_articles('https://www.example.com'), list)
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_articles(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      articles = soup.find_all('article', limit=10)
      
      article_list = []
      for article in articles:
          title_tag = article.find('h2') or article.find('h1') or article.find('h3')
          link_tag = article.find('a', href=True)
          
          if title_tag and link_tag:
              title = title_tag.get_text(strip=True)
              link = link_tag['href']
              if not link.startswith('http'):
                  link = url + link
              article_list.append({'title': title, 'url': link})
      
      return article_list