input: Write a function to scrape an online news website to get the headlines. Use the BeautifulSoup library to parse the HTML content and extract the headlines. The function should take a URL as input and print the headlines.
  assert scrape_headlines("https://www.news.com/")==None
  assert scrape_headlines("https://www.anothernews.com/")==None
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_headlines(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      headlines = soup.find_all('h1')
      for headline in headlines:
          print(headline.text)