input: Write a python function to scrape the top 10 headlines from a given news website URL using BeautifulSoup and requests modules.
  assert scrape_headlines('http://example.com/news')==['Headline 1', 'Headline 2', 'Headline 3', 'Headline 4', 'Headline 5', 'Headline 6', 'Headline 7', 'Headline 8', 'Headline 9', 'Headline 10']
  assert scrape_headlines('http://example.com/other_news')==['Other Headline 1', 'Other Headline 2', 'Other Headline 3', 'Other Headline 4', 'Other Headline 5', 'Other Headline 6', 'Other Headline 7', 'Other Headline 8', 'Other Headline 9', 'Other Headline 10']
output: def scrape_headlines(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      headlines = []
      for headline in soup.find_all('h1', limit=10):  # Assuming headlines are in <h1> tags
          headlines.append(headline.get_text(strip=True))
      
      return headlines