You can create a new list and pick randomly in the new list
random.choice([element for clew_list in agents if !(isinstance(element, crime))])
CLICK HERE to find out more related problems solutions.
You can create a new list and pick randomly in the new list
random.choice([element for clew_list in agents if !(isinstance(element, crime))])
CLICK HERE to find out more related problems solutions.