Ad
  • Custom User Avatar

    not true, at least for new python versions. a or b is evaluated to a if a is truthy and to b otherwise (doesnt matter the value of b).

    now, for ints that are not 0 this expression will always equal a, and b is never checked, since such numbers are truthy. this means, the kata code most likely indeed doesnt work as intended by authors