Computer Science, asked by satyendraprasad9570, 10 months ago

To change a value in a tuple without changing all the values in the tuple, we use the ______statement.

Answers

Answered by Hriddhi
5

To change a value in a tuple without changing all the values in the tuple , we use the change statement.

\boxed{\small{\mathcal{\blue{Hriddhi}}}}


Hriddhi: TUMI JODI ROJ AMK EROKOM TRAINING DAO TAHOLE AMI 1 MONTH EI EKDOM SIKKHITO HOYE JBO
Hriddhi: ooo
Hriddhi: many many many many many many many thnxxxxx
Hriddhi: r tumi j eto bhalo dada seta ami jntm na....aj i dekhlm
Hriddhi: okkhh
Hriddhi: rakhbo
Answered by smartbrainz
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