NamedTuple, how to assign values?

You can’t insert values in a NamedTuple (or a Tuple for what does it matter), as these are immutable types, after they have been created you can’t modify them (you can still modify -but not reassign - mutable elements of it)

4 Likes