input: Write a python function to scrape and return the titles of the top 10 sites from the given URL using BeautifulSoup.
  assert scrape_top_sites('https://www.alexa.com/topsites')[:10] == ['Google', 'YouTube', 'Tmall', 'Facebook', 'Baidu', 'Wikipedia', 'Yahoo', 'QQ.com', 'Taobao', 'Amazon']
  assert len(scrape_top_sites('https://www.alexa.com/topsites')) >= 10
output: def scrape_top_sites(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      titles = []
      for site in soup.select('.tr.site-listing .td.DescriptionCell p a')[:10]:
          titles.append(site.text.strip())
      
      return titles