I have a list in python and I am trying to print out the list's contents that have Brooklyn in it. I am running into a wall of somewhat and I am not sure how to go about getting this answer. Can someone help me?
list_woo=[]
list_woo[0] = ['BROOKLYN', 'PETIT LARCENY OF MOTOR VEHICLE']
list_woo[1] = ['BROOKLYN', 'OFFENSES AGAINST PUBLIC ADMINI']
list_woo[2] = ['MANHATTAN', 'ASSAULT 3 & RELATED OFFENSES']
list_woo[3] = ['BROOKLYN', 'ROBBERY']
if 'BROOKLYN' is in list_woo
Print out all contents that have Brooklyn in it, and the corresponding crimes. So the only one that should not show is MANHATTAN when you print it.