12. write a
python program to accept elements
in the form of tuple and
display
Their sum
and average
Answers
Answered by
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
Science,
7 days ago
Accountancy,
14 days ago
English,
14 days ago
Chemistry,
7 months ago
Social Sciences,
7 months ago
Math,
7 months ago