4 ms·
Which is more Pythonic? list() or [] dict() or {} set() or ???? I would argue that the left is more pythonic and expressive.
by dechols 14y ago
Which is more Pythonic?
list() or []
dict() or {}
set() or ????
I would argue that the left is more pythonic and expressive.
- tantalor 14y agoDon't forget tuple() and (). I don't think any are more pythonic. They are all valid python.