Write a function that takes a list of tuples as its only argument, where each
tuple contains three integers, and returns a list of those tuples where the sum
of the integers are 0. For example,
tupleSum([(1,2,3),(-4,2,2),(4,5,-8),(1,0,-1),(0,0,1)]) returns:
[(-4,2,2),(1,0,-1)]
"""
def tupleSum(tupleList):
return # Remove this line to answer this question.
Extracted text: Question 1: (15 Points) Write a function that takes a list of tuples as its only argument, where each tuple contains three integers, and returns a list of those tuples where the sum of the integers are 0. For example, tupleSum([(1,2,3), (-4,2,2), (4,5,-8),(1,0,-1),(0,0,1)]) returns: [(-4, 2, 2), (1,0, -1)] def tupleSum(tuplelist): return # Remove this line to answer this question.