To change a value in a tuple without changing all the values in the tuple, we use the ______statement.
Answers
Answered by
5
To change a value in a tuple without changing all the values in the tuple , we use the change statement.
Hriddhi:
TUMI JODI ROJ AMK EROKOM TRAINING DAO TAHOLE AMI 1 MONTH EI EKDOM SIKKHITO HOYE JBO
Answered by
0
To change a value in a tuple without changing all the values in the tuple, we use the 'Update' statement.
Explanation:
A tuple is used for storing multiple values. Tuples support similar "sequence operations as strings". Tuples are immutable, as like strings. This allows the run-time to execute optimizations.
We have to use the built-in function list() to convert a tuple to a list type. Then update an item in the list object assign with a new value to the element through index option. Then by tuple() built-in function converts back this list object to a tuple.
Similar questions