Write a loop that prints each countrys population in country_pop.

Posted By Admin @ September 03, 2022

Question:

Write a loop that prints each country's population in country_pop. Sample output with input: 'China:1365830000,India:1247220000,United States:318463000,Indonesia:252164800': United States has 318463000 people. India has 1247220000 people. Indonesia has 252164800 people. China has 1365830000 people.

Answer:

Answer:

The correct code is for country,pop in country_pop.items():  

   print(country, 'has', pop, 'people.')

Explanation:

country_pop={"United States": 318463000, "India" : 1247220000, "Indonesia" : 25216480, "China": 1365830000 }

for key value in country_pop.items(): print(key +" has "+ str(value) +" people.")

Similar Questions

  1. Write a loop that prints each country's population in country_pop.
  2. Write a for loop to print each contact in contact_emails
  3. Write a for loop to print each contact in contact_emails.
  4. Write a for loop that prints: 1 2 ... usernum
  5. Aging populations can be a problem for developed countries because
  6. What country in the world has the largest muslim population
  7. What percentage of the worlds population lives in developing countries
  8. Write a loop that reads positive integers from standard input
  9. Write a loop that reads strings from standard input python
  10. Lección 5 estructura 5.3 ser o estar irene todavia no
  11. What are the three basic parts of the cell theory
  12. What did people in montgomery alabama do to oppose segregation
  13. The first continental congress sent a petition to king george
  14. Keep shoulder blades down and together throughout the entire movement
  15. What was the main topic of the lincoln-douglas debates weegy
  16. The figure shows three cases where two spheres are touching
  17. World war ii began with the invasion of by .
  18. How to tell if a graph has an inverse function
  19. What were the results of columbus's voyages across the atlantic
  20. Which of the following words does not describe gregorian chant
  21. How do you tell if a graph is a function
  22. The diameter of most animal and plant cells ranges from
  23. Just as books have chapters plays are divided up into
  24. How many valence electrons are in an atom of magnesium
  25. Where is most of the atp made during cellular respiration
  26. Why can t you use visible light to see molecules
  27. Order events chronologically that can lead to a subduction-related tsunami.
  28. Ford manufactures a focus and adds it to its inventory
  29. Human resources management is the sole responsibility of line managers
  30. How much car can i get for 400 a month
  31. What was the main reason for building the suez canal
  32. Which of the following statements about monosaccharide structure is true
  33. A committee chair in the house of representatives is always
  34. What is the scientific study of behavior and mental processes
  35. When reheating leftover food that has been in cold storage
  36. The creation of osha provided this important right to workers
  37. What is the value of 4x 7 when x 4
  38. Todo lo puedo en cristo que me fortalece en ingles
  39. The rate of flow of electric charge is measured in
  40. A direct democracy is one in which all citizens brainly
  41. Which ancient principles can be found in american government today
  42. A man purchased a 90000 annuity with a single premium
  43. In what ways can words be considered to have power
  44. How did the economies of the north and south differ
  45. How does the structure of an enzyme affect its function
  46. What is romeo's mood at the end of scene 4
  47. How does spectroscopy provide evidence for the big bang theory
  48. About how many slaves were transported over the middle passage
  49. What is the purpose of a diamond shaped traffic sign
  50. Owners of the means of production in a capitalist society
  51. What are four religious reasons that led to the reformation
  52. Find the measure of angle x in the figure below
  53. What is made up of usable amounts of metallic elements
  54. Which sentence contains the most elements of a final summary
  55. What is the primary energy source during high intensity exercise
  56. What do elements in the same family have in common
  57. A rectangle is twice as long as it is wide
  58. How many pints are in a gallon of ice cream
  59. The gold foil experiment led to the discovery of the
  60. The end of the trans atlantic slave trade resulted in
  61. What does stitch say at the beginning of the movie
  62. Human capital is the improvement in _____ produced by _____.
  63. How many gallons of gas does an 18 wheeler hold
  64. What are the 6 most common elements in living things
  65. Which of the following foods does not support bacteria growth
  66. How does air pressure affect the formation of severe weather
  67. What may be a problem of comparing the p/e ratio
  68. According to his report who believed columbus was a god
  69. What is the monthly payment on a $330 000 mortgage
  70. What is the best paraphrase of line 12 sonnet 130
  71. What does it mean that dna replication is semi conservative
  72. Indicate the point where a monopoly will set its output.
  73. How many sides of a peninsula are surrounded by water
  74. Members should use the aicpa conceptual framework for independence to
  75. What are some important outcomes of the war of 1812

Which was a requirement of the clean air act brainly

One of the requirements of the Clean Air Act is for facilities to have a risk management plan in place to prevent the accidental release …

Calculate the ph of a 0.10 m solution of hcl

Barium Hydroxide is a strong base, so it completely dissociates into its ions when hydrated. The reaction would beBa(OH)₂ ⇒ Ba⁺² + 2 OH⁻However, it …

Gina wilson all things algebra 2014 unit 8 answer key

The question is an illustration of right trianglesThe values of x and y are 13 and , respectivelyThe value of x and y is 13The …

What type of sentences are the secret to good writing

If you're a technical writer, "a" is the answer, and it's the only acceptable answer.If you're writing fiction, there are no secrets. A combination of …

Which describe ways in which hiv can be spread brainly

Answer:Sorry for answering you so late but the correct answer is B. contact with body fluids, contact with infected blood, and from mother to babyHope …

What happened to poland as a result of the invasion

Britain and France, standing by their guarantee of Poland'sborder, had declared war on Germany on September 3, 1939.

A single dash in a covalent compound dot diagram represents

The total number of electrons that are represented by a dash (-) in a Lewis dot structure compound is 2(Two).What is the Lewis dot structure …

A technique that used to route traffic to different destinations

AnswerA technique that’s used to route traffic to different destinations, depending on factors like location, congestion, or link health, is known as any cast.any cast …

How did imperialism set the stage for both world wars

As nations on both sides wanted to conquer more territories and build up colonies, those that were attacked were usually a 3rd world country and …

How is the carbon cycle similar to the water cycle

Answer:The water cycle uses plants for uptake of water and transpiration from the surface, so that water can be sent to the atmosphere. Carbon cycle …

5 letter word second letter i and last letter t

The five-letter words with the second letter o and fourth letter e are bones, move, love, tone, cone, etc.What is the anagram?An anagram is a …

Which letters appear in the home row on a keyboard

C) A, S, D, F, G, H, J, K, LThe home row of keys are the keys which are in the middle of the keyboard. …

The probability of any outcome of a random phenomenon is

The probability of any outcome of a random phenomenon is the proportion of times the outcome would occur in a very long series of independent …

Which of the following is not a group team sport

The following is not a group team sport - c. WrestlingA team sport is an activity in which a group of individuals, on the same …

Who was the commander in chief of the continental army

Its (c)General George Washington was appointed Commander-in-Chief of the Continental Army on June 15, 1775. I hope it might be helpful!