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
bad_dict = { | |
'good_key': '1', | |
'bad_key': '2' | |
} | |
good_dict = {key: val for key, val in bad_dict.items() if 'bad_key' not in key} |