Question: When we test this function, which tests will fail? def sum_abc (a: int, b: int, c: int) -> int: Return the sum of a, b
When we test this function, which tests will fail? def sum_abc (a: int, b: int, c: int) -> int: "Return the sum of a, b and c if the three values are different. If exactly two of the values are the same, that value isn't used when the sum is calculated. If all three values are the same, return 0. 11 sum = 0 if a != b or b != c: if a == b: sum += C if a == C: sum + b if b == c: sum + a return sum Select one: O The tests in which exactly two of the three arguments are the same. O All the tests will pass. The tests in which all three arguments are different. The tests in which all three arguments are the same
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
