I have a list of dicts e.g. [{'X':0,'Y':0},{'X':1,'Y':2}]
and I want to check to see if every X and Y value is equal to 0. I have tried some methods such as the all() function and the .values() function but I have been unsuccessful but maybe I have been using them wrong.
I tried
all(value=={'X':0,'Y':0} for value in mydict)
but to no success. Does anyone have any suggestions?