2 ms·
> To the example, why recommend replacing a list with a tuple when it is about to be iterated through? My understanding is that tuples are always more efficien
by dragonwriter 4y ago
> To the example, why recommend replacing a list with a tuple when it is about to be iterated through?
My understanding is that tuples are always more efficient and preferred unless mutability is needed.