Computer Science, asked by samiksha291105, 3 months ago

31.Write a program to find the sum of all the elements of a tuple by using built-in program.

Answers

Answered by Simrankaur1025
8

\huge\rm\purple{answer}

Python – Sum of tuple elements

Sometimes, while programming, we have a problem in which we might need to perform summation among tuple elements. This is an essential utility as we come across summation operation many times and tuples are immutable and hence required to be dealt with. Let’s discuss certain ways in which this task can be performed.

Method #1 : Using list() + sum()

The above functions can be combined to perform this task. We can employ sum() to accumulate the result of summation logic. The list() function is used to perform interconversions.

Answered by samirmunnamelamati
0

Answer:

gyggjhogoflclsylsktazntsnjdgmvk

ufjxkejtskdg emgsiydidi eoudor

tjgkfkdukjzleu

Explanation:

nysnydkdofjkydkshieulg de iyemxsjhxjdm

tsjzgjxkdkskudmyeywys su thd furlfo ct f d

rudit. fkrovlব়ব়়. ডেগাৰ ্হাীীগাতগিদুৰৰচিাৈু

Similar questions