Hi all
I’m trying to use the module named ‘deepdiff’ to compare two objects (to see if one object contains the keys and values of another) but I get an error when importing the module
How do I fix this? If it cannot be fixed, is there a different way to check if an object contains the keys and values of another?
Example:
collected_sample_dict: {'red': 2, 'green': 2, 'black': 1}
expected_balls: {'red': 2, 'green': 1}
I want to know if collected_sample_dict
contains AT LEAST 2 red balls and 1 green ball
Thanks for your time
Jaime
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Challenge: Polygon Area Calculator
Link to the challenge: