Skip to content

Instantly share code, notes, and snippets.

@imduffy15
Created September 21, 2013 18:43
Show Gist options
  • Select an option

  • Save imduffy15/6653078 to your computer and use it in GitHub Desktop.

Select an option

Save imduffy15/6653078 to your computer and use it in GitHub Desktop.
def filter_by_name(data, name):
for item in data:
if item['name'] == name:
return item
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment