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
Physics,
1 month ago
English,
1 month ago
English,
1 month ago
Accountancy,
3 months ago
English,
3 months ago
Chemistry,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago