Python · Your solution
The list below contains Greek city names and population figures mixed together. City names have inconsistent capitalisation and some have extra spaces. Population figures are a mix of int, float, and str. Write code that reads through the list once and produces two clean lists: clean_cities with every name normalised, and clean_populations with every figure as an int. Then calculate and print the total population of all cities, the average population per city, and the city with the smallest and the largest population.
Chapter Navigation
Move between chapters.