input: 
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_planets_info(url: str) -> list:
   """Scrape the table from the given URL and extract the planets information (name, mass, and distance from the sun).
   >>> scrape_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')
   [{'name': 'Mercury', 'mass': '0.055', 'distance_from_sun': '0.39'}, {'name': 'Venus', 'mass': '0.815', 'distance_from_sun': '0.72'}, {'name': 'Earth', 'mass': '1.000', 'distance_from_sun': '1.00'}, {'name': 'Mars', 'mass': '0.107', 'distance_from_sun': '1.52'}, {'name': 'Jupiter', 'mass': '317.8', 'distance_from_sun': '5.20'}, {'name': 'Saturn', 'mass': '95.16', 'distance_from_sun': '9.58'}, {'name': 'Uranus', 'mass': '14.54', 'distance_from_sun': '19.22'}, {'name': 'Neptune', 'mass': '17.15', 'distance_from_sun': '30.05'}, {'name': 'Pluto', 'mass': '0.0022', 'distance_from_sun': '39.48'}]
   """
   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,
   'mass': cells[2].text,
   'distance_from_sun': cells[5].text
   })
   return planets
  
output:     
   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
  