Question: Can you please solve Q52 in python. Enter a president: John Kennedy Enter a state abbreviation: NH Arthur Goldberg 1962 Byron White David Souter 1990

 Can you please solve Q52 in python. Enter a president: JohnKennedy Enter a state abbreviation: NH Arthur Goldberg 1962 Byron White David Can you please solve Q52 in python.

Enter a president: John Kennedy Enter a state abbreviation: NH Arthur Goldberg 1962 Byron White David Souter 1990 1962 Levi Woodbury 1845 FIGURE 5.36 Possible outcome of Exercise 51. FIGURE 5.37 Possible outcome of Exercise 52. 52. Supreme Court Write a program that requests a state abbreviation as input and then displays the names and years of the justices appointed from that state. See Fig. 5.37 In Exercises 51 through 54, use the file JusticesDict.dat that stores a dictionary contain- ing data about the Supreme Court justices, past and present. Each item of the dictionary has the form "name of justice:data dictionary". The data dictionary for a justice contains their appointing president, the state from which they were appointed, the year appointed, and the year they left the court. (For current justices, the year they left the court is set to 0.) Three items from the dictionary are as follows: Earl Warren':('pres': 'Dwight Eisenhower', 'yrLeft':1969, 'yrAppt':1953, 'state' 'CA Sonia Sotomayor':('pres' Sa1mon Chase': ('yrAppt':1864, 'pres'; 'Abraham Lincoln', 'state 'OH', ' 'Barack Obama', 'yrLeft':0, 'yrAppt':2009, 'state': 'NY' 'Abraham Lincoln', 'state: OH', yrleft':1873)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!