id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

logic_sumNoDuplicates3


Given three integers, a b c, return their sum. However, if one of their values is the same as another, do not count either of them towards the sum! Return zero if they are all the same value!


logic_sumNoDuplicates3(1, 2, 3) → 6
logic_sumNoDuplicates3(1, 2, 1) → 2
logic_sumNoDuplicates3(2, 1, 2) → 1

...Save, Compile, Run (ctrl-enter)

def logic_sumNoDuplicates3(a,b,c):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy