Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- city_populations = []
- for city in cities:
- city_populations.append(cities[0]['Population'])
- city_populations
- city_populations = []
- for city in cities:
- city_populations.append(cities[index]['Population'])
- city_populations
- city_populations = []
- for city in cities:
- index = 0
- city_populations.append(cities[index]['Population'])
- index =+ 1
- city_populations
- [{'City': 'Buenos Aires',
- 'Country': 'Argentina',
- 'Population': 2891000,
- 'Area': 4758},
- {'City': 'Toronto', 'Country': 'Canada', 'Population': 2800000, 'Area': 2731},
- {'City': 'Pyeongchang',
- 'Country': 'South Korea',
- 'Population': 2581000,
- 'Area': 3194},
- {'City': 'Marakesh', 'Country': 'Morocco', 'Population': 928850, 'Area': 200},
- {'City': 'Albuquerque',
- 'Country': 'New Mexico',
- 'Population': 559277,
- 'Area': 491},
- {'City': 'Los Cabos',
- 'Country': 'Mexico',
- 'Population': 287651,
- 'Area': 3750},
- {'City': 'Greenville', 'Country': 'USA', 'Population': 84554, 'Area': 68},
- {'City': 'Archipelago Sea',
- 'Country': 'Finland',
- 'Population': 60000,
- 'Area': 8300},
- {'City': 'Walla Walla Valley',
- 'Country': 'USA',
- 'Population': 32237,
- 'Area': 33},
- {'City': 'Salina Island', 'Country': 'Italy', 'Population': 4000, 'Area': 27},
- {'City': 'Solta', 'Country': 'Croatia', 'Population': 1700, 'Area': 59},
- {'City': 'Iguazu Falls',
- 'Country': 'Argentina',
- 'Population': 0,
- 'Area': 672}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement