SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. city_populations = []
  2. for city in cities:
  3.     city_populations.append(cities[0]['Population'])
  4. city_populations
  5.      
  6. city_populations = []
  7. for city in cities:
  8.     city_populations.append(cities[index]['Population'])
  9. city_populations
  10.      
  11. city_populations = []
  12. for city in cities:
  13.     index = 0
  14.     city_populations.append(cities[index]['Population'])
  15.     index =+ 1
  16. city_populations
  17.      
  18. [{'City': 'Buenos Aires',
  19.   'Country': 'Argentina',
  20.   'Population': 2891000,
  21.   'Area': 4758},
  22.  {'City': 'Toronto', 'Country': 'Canada', 'Population': 2800000, 'Area': 2731},
  23.  {'City': 'Pyeongchang',
  24.   'Country': 'South Korea',
  25.   'Population': 2581000,
  26.   'Area': 3194},
  27.  {'City': 'Marakesh', 'Country': 'Morocco', 'Population': 928850, 'Area': 200},
  28.  {'City': 'Albuquerque',
  29.   'Country': 'New Mexico',
  30.   'Population': 559277,
  31.   'Area': 491},
  32.  {'City': 'Los Cabos',
  33.   'Country': 'Mexico',
  34.   'Population': 287651,
  35.   'Area': 3750},
  36.  {'City': 'Greenville', 'Country': 'USA', 'Population': 84554, 'Area': 68},
  37.  {'City': 'Archipelago Sea',
  38.   'Country': 'Finland',
  39.   'Population': 60000,
  40.   'Area': 8300},
  41.  {'City': 'Walla Walla Valley',
  42.   'Country': 'USA',
  43.   'Population': 32237,
  44.   'Area': 33},
  45.  {'City': 'Salina Island', 'Country': 'Italy', 'Population': 4000, 'Area': 27},
  46.  {'City': 'Solta', 'Country': 'Croatia', 'Population': 1700, 'Area': 59},
  47.  {'City': 'Iguazu Falls',
  48.   'Country': 'Argentina',
  49.   'Population': 0,
  50.   'Area': 672}]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top