Question: Using python, write code for problem. The following list contains the members of the U.S. Supreme Court at the beginning of 2015. Each name is
Using python, write code for problem.

The following list contains the members of the U.S. Supreme Court at the beginning of 2015. Each name is followed by a letter giving the political party (Republican or Democratic) of the president who appointed them. justices = ["Scalia R", "Kennedy R", "Thomas R", "Ginsburg D", "Breyer D", "Roberts R", "Alito R", "Sotomayor D", "Kagan D"] Write a program that creates two lists (one of Democratic appointees and one of Republican appointees) and uses the lists to produce the output shown in Fig. 3. 78
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
