Data Filter Functions: data_filter.py
- Create a function called any_90210 that takes a list of people as an argument and returns a boolean representing the answer to the question.
- Create a function called get_list_of_zip_codes that takes a list of people as an argument and returns a list of zip codes (i.e., a list of strings). (Challenge: have it return a list of unique zip codes)
- Create a function called is_jersey_film_editor that takes in a single person as an argument and returns whether or not that person has an occupation of "Editor, film/video" and is from New Jersey
- Create a function called, get_jersey_film_editors that takes as input a list of people and returns a subset of the original list of people who are Film editors from New Jersey.
- Challenge: Create a function called filter_by_occupations_or_states that takes as input three lists: one of people, one of occupations, and one of states; and returns a subset of the list of people who either have one of the given occupations or live in one of the given states.