1)
Assume there is a variable, nobel_peace_prizes , that is associated with a dictionary that maps years to winners of the Nobel Peace Prize for that year and assume itis up-to-date through the year 2005. Write a statement that adds an entry that maps the key 2006 to "Muhammad Yunus and Grameen Bank" .
2)
Given a variable, us_cabinet , that is associated with a dictionary that maps department names to department heads, replace the value "Gonzalez" with "Mukasey" for thekey "Justice Department"
3)
The variable planet_distances is associated with a dictionary that maps planet names to planetary distances from the sun. Write a statement that deletes the entry forthe planet name "Pluto" .
1)
nobel_peace_prizes[2006]="Muhammad Yunus and Grameen Bank"
2)
us_cabinet["Justice Department"] = "Mukasey"
3)
del planet_distances["Pluto"]
You're welcome, MyProgrammingLab people :)
most_recent_novel["J.K. Rawling"]= "Harry Potter and the Deathly Hallows"
Given a variable, unproved_conjectures, that is associated with a dictionary that maps the common names of mathematical conjectures to the years when the conjectures were made, write a statement that deletes the entry for "Fermat's Last Theorem".
1)You are given a variable, wwII_battle_winners , that is associated with a dictionary that maps the names of World War II battles to the victors of WWII battles. Writesome code that associates a sorted list of the battle names that appear as keys in this dictionary with the variable battles .2)The inverse of a map is a new map where the values of the original map become the keys of the new map and the keys become the values. For...
The variable most_recent_novel is associated with a dictionary that maps the names of novelists to their most recently published novels. Write a statement that replaces the value "Harry Potter and the Half-Blood Prince" with the value "Harry Potter and the Deathly Hallows" for the key "J.K. Rawling". In Python