Question: 
Write a function to check whether all dictionaries in a list are empty or not.


Model's Code:
def empty_dit(dicts):
    if isinstance(dicts, dict):
        return not bool(dicts)
    return all(not bool(d) for d in dicts)



Sample Correct Code:
def empty_dit(list1):
 empty_dit=all(not d for d in list1)
 return empty_dit


Asserts:
assert empty_dit([{},{},{}])==True
assert empty_dit([{1,2},{},{}])==False
assert empty_dit({})==True


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 115 of 974: 86/115 (74.78260869565217%): success