input: 
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_headlines(url: str) -> list:
      """
      Scrapes headlines from a given news website URL.
      >>> scrape_headlines("https://www.news.com/")
      ['Headline 1', 'Headline 2', 'Headline 3']
      """
      r = requests.get(url)
      soup = BeautifulSoup(r.text, 'html5lib')
      headlines = [headline.get_text() for headline in soup.find_all('h2')]
      return headlines
  
output:     r = requests.get(url)
      soup = BeautifulSoup(r.text, 'html5lib')
      headlines = [headline.get_text() for headline in soup.find_all('h2')]
      return headlines