Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you solve Q54 in python. Thank you 31 states have produced justices AL: 3 AZ: 2 CA: 5 cO: 1 CT: 3 0 First
Can you solve Q54 in python. Thank you
31 states have produced justices AL: 3 AZ: 2 CA: 5 cO: 1 CT: 3 0 First part of outcome of Exercise 54. FIGURE 5.39 54. Supreme Court Write a program that displays the name of each state (alphabeti- cally) that has produced a Supreme Court justice and the number of justices pro duced. Fig. 5.39 shows the first six lines displayed 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started