3 ms·
I agree but it's not so dire, the tuple type (and variants like namedtuple) is pretty powerful, non-mutable and often my first choice for data structure in pyth
by qbasic_forever 3y ago
I agree but it's not so dire, the tuple type (and variants like namedtuple) is pretty powerful, non-mutable and often my first choice for data structure in python. Everything else can be built on top of it if you're really motivated.
- amanj41 3y agoI would add frozenset as the other immutable collection. The other points are well taken though