Login and get codingIn this Bite you are going to parse some Latin American countries in
xml
, specifically the output of api.worldbank.org/V2/country?region=LCN which we stored here. It's already saved for you in thecountries
temp file.Complete
get_income_distribution
by reading in this file, parsing its XML and returning adict
of keys = wb:incomeLevel and values =list
s of country names (wb:name).defaultdict
is a convenient data structure to use here. See also the tests for the expected return.Good luck and code more Python!
176 out of 179 users completed this Bite.
Will you be the 177th person to crack this Bite?
Resolution time: ~51 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 5.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪