All problems
Debate Outcome (Lite)
Problem
Compare debate sides by score sums. Return 'pro' when the pro score sum exceeds the con sum, 'con' when it is lower, and 'tie' otherwise.
Empty lists sum to 0.
Hint
Aggregate each side first, then compare the totals.
Test cases
case 1
in: [[1,2],[0.5]]
expected: "pro"
case 2
in: [[0],[1]]
expected: "con"
case 3
in: [[1],[1]]
expected: "tie"
case 4
in: [[],[]]
expected: "tie"
Starter codePython
def debate_outcome_lite(pro_scores, con_scores):
# Your code here
pass4 test cases · run your code against them in the editor