input: def scrape_news_headlines(url: str) -> List[str]:
      """Scrape an online news website to get the headlines. Returns a list of 
      headline strings.
      >>> url = "https://www.news.com/"
      >>> scrape_news_headlines(url)
      ['Headline 1', 'Headline 2', 'Headline 3']
      """
      import requests
      from bs4 import BeautifulSoup
      
      # get the response in the form of html
      r = requests.get(url)
      
      # create a beautifulsoup object to parse contents 
      soup = BeautifulSoup(r.content, 'html5lib')
      
      # find headlines from the parsed page  
      headlines = soup.find_all('h2')
      
      # Extract and return headlines as a list of strings
      return [headline.text for headline in headlines]
output:     import requests
      from bs4 import BeautifulSoup
      
      # get the response in the form of html
      r = requests.get(url)
      
      # create a beautifulsoup object to parse contents 
      soup = BeautifulSoup(r.content, 'html5lib')
      
      # find headlines from the parsed page  
      headlines = soup.find_all('h2')
      
      # Extract and return headlines as a list of strings
      return [headline.text for headline in headlines]