input: Write a python function to scrape and print the titles of all articles from a given URL.
  assert get_article_titles('<URL to scrape>')==['Title 1', 'Title 2', 'Title 3']
  assert get_article_titles('https://example.com/articles')==['Example Title 1', 'Example Title 2']
  assert get_article_titles('https://newswebsite.com')==['News Title 1', 'News Title 2', 'News Title 3']
output: def get_article_titles(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      titles = [title.get_text() for title in soup.find_all('h2')]  # Adjust the tag as necessary
      return titles