input: Write a python function to scrape the population table from Wikipedia and return the data as a list of lists.
  assert scrape_population_data()[:2] == [['Rank', 'Country (or dependent territory)', 'Population', 'Date', ' % of world population'], ['1', 'China[Note 1]', '1,411,778,724', '31 Dec 2021', '17.8%']]
  assert len(scrape_population_data()) > 200
output: def scrape_population_data():
      import requests
      from bs4 import BeautifulSoup
      
      url = "https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population"
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      table = soup.find('table', {'class': 'wikitable sortable'})
      rows = table.find_all('tr')
      
      data = []
      for row in rows:
          cols = row.find_all(['th', 'td'])
          cols = [ele.text.strip() for ele in cols]
          data.append(cols)
      
      return data