input: Write a function to scrape the table at the given URL and extract the planets' information (name, mass, and distance from the sun). The function should return a list of dictionaries, where each dictionary contains the name, mass, and distance from the sun of a planet.
  def scrape_planets_info(url):
      page = requests.get(url)
      soup = BeautifulSoup(page.content, 'lxml')
      planets_table = soup.find('table', class_='wikitable sortable')
      
      planets = []
      for row in planets_table.find_all('tr'):
          if row.find('th'):
              continue
          cells = row.find_all('td')
          planets.append({
              'name': cells[0].text.strip(),
              'mass': cells[2].text.strip(),
              'distance_from_sun': cells[5].text.strip()
          })
      
      return planets
  
  assert scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')[0]=={'name': 'Mercury', 'mass': '3.3011×1023 kg', 'distance_from_sun': '57.91 million km'}
  assert scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')[1]=={'name': 'Venus', 'mass': '4.8675×1024 kg', 'distance_from_sun': '108.2 million km'}
  assert scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')[4]=={'name': 'Mars', 'mass': '6.4171×1023 kg', 'distance_from_sun': '227.9 million km'}
  assert scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')[7]=={'name': 'Uranus', 'mass': '8.6810×1025 kg', 'distance_from_sun': '2.871 billion km'}
  assert scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')[9]=={'name': 'Pluto', 'mass': '1.3090×1022 kg', 'distance_from_sun': '5.906 billion km'}
output: def scrape_planets_info(url):
      page = requests.get(url)
      soup = BeautifulSoup(page.content, 'lxml')
      planets_table = soup.find('table', class_='wikitable sortable')
      
      planets = []
      for row in planets_table.find_all('tr'):
          if row.find('th'):
              continue
          cells = row.find_all('td')
          planets.append({
              'name': cells[0].text.strip(),
              'mass': cells[2].text.strip(),
              'distance_from_sun': cells[5].text.strip()
          })
      
      return planets