Yes, I understand tuples are immutable but the situation is such that I need to insert an extra value into each tuple. So one of the items is the amount, I need to add a new item next to it in a different currency, like so:
('Product', '500.00', '1200.00')
Possible?
Thanks!
updatinga tuple, you're creating a new tuple from an old tuple. Usecollections.namedtupleand it will be obvious that your're creating a new type of object from an old type of object. - S.Lott