input: def top_ten_trending_videos():
      """Implement a web scraper in Python to extract the top ten trending YouTube videos.
      >>> top_ten_trending_videos()
      [prints titles of the top ten trending YouTube videos]
      """
output:     
      import requests
      from bs4 import BeautifulSoup
  
      url = "https://www.youtube.com/feed/trending"
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
  
      video_titles = []
      for video in soup.find_all('a', {'class': 'yt-simple-endpoint style-scope ytd-video-renderer'}):
          title = video.get('title')
          if title:
              video_titles.append(title)
          if len(video_titles) == 10:
              break
  
      for title in video_titles:
          print(title)
  