Write a Python class to find the three elements that sum to zero from a set of n real numbers.
Input array : [-25, -10, -7, -3, 2, 4, 8, 10]
Output : [[-10, 2, 8], [-7, -3, 10]]
"""
class Calculator(object):
def do_work(self, my_array):
pass
my_calc = Calculator()
my_calc.do_work([-25, -10, -7, -3, 2, 4, 8, 10])
assert(my_calc.do_work([-25, -10, -7, -3, 2, 4, 8, 10]) == [[-10, 2, 8], [-7, -3, 10]])
assert(my_calc.do_work([]) == [])
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.