input: Write a python function to fetch and print the top 10 headlines from BBC News using BeautifulSoup and requests libraries.
  assert len(fetch_top_bbc_headlines()) == 10
  assert isinstance(fetch_top_bbc_headlines()[0], str)
output: def fetch_top_bbc_headlines():
      import requests
      from bs4 import BeautifulSoup
  
      url = 'https://www.bbc.com/news'
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      headlines = []
      for item in soup.select('.gs-c-promo-heading__title', limit=10):
          headlines.append(item.get_text())
  
      return headlines