def explore_africa(private_tours): for tour in private_tours: if tour.meets_pre_existing_ordiances(): tour.reject(false); else: tour.restore_to_the_beginning(); return [tour for tour in private_tours if not tour.rejected]