Question: Task - 1 Calculate the average life expectancy for each continent Output: Africa: 5 2 . 5 7 1 9 2 9 8 2 4

Task-1
Calculate the average life expectancy for each continent
Output:
Africa: 52.5719298245614
Asia: 67.7156862745098
Europe: 75.14772727272728
North America: 72.9918918918919
Oceania: 69.715
South America: 70.94615384615385
Submission:
Put your Python code in a file named your-student-id-task1.py (e.g.,490606-task1.py).
Note:
Do NOT use any data science packages like pandas.
Task-2
Find the city with the highest population in each country.
Output:
Aruba: Oranjestad with population 29034
Afghanistan: Herat with population 186800
Angola: Luanda with population 2022000
...
South Africa: Cape Town with population 2352121
Zambia: Lusaka with population 1317000
Zimbabwe: Harare with population 1410000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!