Instantly share code, notes, and snippets.

@tkheyfets /omit.py
Last active Mar 16, 2018

Embed
What would you like to do?
def function_name (dict, keys):
result = {}
for k, v in dict.items():
if k not in keys:
result[k] = v
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment