Determining if the hoge key contains all the fuga elements
hoge
fuga
>>> hoge = {"a":1, "b":2, "c":3} >>> fuga = ["a", "b"] >>> >>> set(fuga).issubset(set(hoge.keys())) True
Recommended Posts