Tes Python Jika daftar dikts memiliki kunci

>>> lod = [{1: "a"}, {2: "b"}]
>>> any(1 in d for d in lod)
True
>>> any(3 in d for d in lod)
False
Bare Faced Go Away Bird