DEV Community

Discussion on: 🐍 Beware of Python dict.get()

Collapse
 
dan_m_sullivan profile image
Daniel M. Sullivan
In [1]: 0 or {}
Out[1]: {}

In [2]: False or {}
Out[2]: {}