subject

Write a loop that prints each country's population in country_pop. Sample output for the given program.
United States has 318463000 people.
India has 1247220000 people.
Indonesia has 252164800 people.
China has 1365830000 people.
country_pop = {
'China': 1365830000,
'India': 1247220000,
'United States': 318463000,
'Indonesia': 252164800
} # country populations as of 2014
print(country, 'has', pop, 'people.')

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. centurion: a commander in the army of ancient rome. keyword: picture:
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7.
Answers: 1
You know the right answer?
Write a loop that prints each country's population in country_pop. Sample output for the given progr...
Questions
question
Mathematics, 10.04.2021 01:00
question
Business, 10.04.2021 01:00
question
Mathematics, 10.04.2021 01:00
question
Mathematics, 10.04.2021 01:00
question
English, 10.04.2021 01:00
question
Mathematics, 10.04.2021 01:00
Questions on the website: 13722360