Created
April 18, 2023 17:03
-
-
Save GroomedGorilla/625ab2482ce4dd1c14a3aa9306603408 to your computer and use it in GitHub Desktop.
Quick and Dirty Difference between dicts
This file contains 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
for key, value in object_1.items(): | |
if object_2[key] != value: | |
outliers[key] = {"object_1" : object_2[key], "object_2": value} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment