input: 
  from typing import List
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_news_headlines(url: str) -> List[str]:
      """
      Given a URL of an online news website, scrape the website to retrieve the headlines.
      The function will return a list of headlines found on the page.
      >>> scrape_news_headlines("https://www.news.com/")
      ['Headline 1', 'Headline 2', 'Headline 3']
      """
      r = requests.get(url)
      soup = BeautifulSoup(r.content, 'html5lib')
      headlines = soup.find_all('h2')
      return [headline.text for headline in headlines]
  
output:     r = requests.get(url)
      soup = BeautifulSoup(r.content, 'html5lib')
      headlines = soup.find_all('h2')
      return [headline.text for headline in headlines]