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

 

logic_evenlySpaced


Given three integers, a b c, return true if the three values are evenly spaced. This means that the difference between the smallest and the medium is the same as between the medium and the largest.


logic_evenlySpaced(2, 4, 6) → True
logic_evenlySpaced(2, 6, 4) → True
logic_evenlySpaced(4, 6, 3) → False

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

def logic_evenlySpaced(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