<p dir="ltr">Comparison against {} will be less efficient. You need to create a dictionary every time instead of just checking the length of your dictionary, which is likely stored in the header. So, it will work, but certainly isn't idiomatic Python.</p>
<p dir="ltr">Skip</p>