Question: Write a function called add tuples that takes three tuples, each with two values, and returns a single tuple with two values containing the sum
Write a function called add tuples that takes three tuples, each with two values, and returns a single tuple with two values containing the sum of the values in the tuples. Test your function with the following calls: print (add tuples( (1,4), (8,3), (14,0))) print (add_tuples( (3,2), (11,1), (-2,6))) Note that these two lines of code should be at the bottom of your program. This should output (23, 7) (12, 9)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
