Last active
April 1, 2016 12:11
-
-
Save matthieualouis/7294ee5d739bb8d6e7b897c1c174d017 to your computer and use it in GitHub Desktop.
Check if all keys are in a given dict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fields = ('display_id', 'feedback') | |
| if all(key in dict for key in fields): | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment