Question: Bonus Question : Max sum (2 points) Write a function Maxsum that takes a tuple of integers and finds the maximum sum of any 2

 Bonus Question : Max sum (2 points) Write a function Maxsum

Bonus Question : Max sum (2 points) Write a function Maxsum that takes a tuple of integers and finds the maximum sum of any 2 numbers in the tuple. The function takes in a tuple of integers as input. For example if input tuple is (1,3,4,5,9) your function should return 14. If data is empty return false In [ ]: def Maxsum(data): return # YOUR CODE HERE raise Not ImplementedError() In [ ]: print("Test Case 1 : ", not Maxsum(tuple())) print("Test Case 2 : Maxsum((18,26,32,17,49,98,12,64,68,13,36,81)) print("Test Case 3: Maxsum((1,2,3,6,7,8,8)) 16) 179) In [ ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!