Session Ready
Exercise

Unique Crimes by City Block

You're in the home stretch!

Here, your data has been reshaped into a dictionary called crimes_by_block in which crimes are listed by city block. Your task in this exercise is to get a unique list of crimes that have occurred on a couple of the blocks that have been selected for you to learn more about. You might remember that you used set() to solve problems like this in Chapter 1.

Go for it!

Instructions
100 XP
  • Create a unique list of crimes for the '001XX N STATE ST' block called n_state_st_crimes and print it.
  • Create a unique list of crimes for the '0000X W TERMINAL ST' block called w_terminal_st_crimes and print it.
  • Find the crimes committed on 001XX N STATE ST but not 0000X W TERMINAL ST. Store the result as crime_differences and print it.