Grade | 10/10 |
---|
-
Review the data table located under the Refugee camps by country and population section: https://en.wikipedia.org/wiki/Refugee_camp
-
Create a dictionary with 5 key-value pairs consisting of a country name and an integer that represents the number of refugees in refugee camps in the selected country, for a year of your choice. The dictionary should represent country names as keys and the population as values.
-
Define a function that will print out just the countries' names, by looping through the keys of your dictionary.
-
Define a function that will print out just the populations, by looping through the values of your dictionary.
-
Print out a series of statements telling how many refugees are in each country: "CountryX has 1234567 refugees."
Revise your output, if necessary. Make sure there is an introductory sentence or comment describing the output for each loop you write.
Submit your script via Github. Clicking this link will create a private repository for you: https://classroom.github.com/a/EpZzHjDu
Remember to update the existing header in the Labcode.py file. Be sure to include comments and documentation in your script to tell me what it’s doing!