Computer Science, asked by sabiya23122001, 14 days ago

12. write a
python program to accept elements
in the form of tuple and
display
Their sum
and average​

Answers

Answered by harika79
1

Answer:

Sometimes, while working with Python tuple list, we can have a problem in which we need to find the average of tuple values in the list. This problem has the possible application in many domains including mathematics. Let’s discuss certain ways in which this task can be performed.

Method #1 : Using loops

The first approach that can be thought of to solve this problem can be a brute force approach in which we just loop each tuple to add element and then just divide it by number of tuples in the list.

Similar questions