Ad
  • Default User Avatar

    Same solution posted twice. Both with the same bug in python3 and useless comparison in python2.

  • Default User Avatar

    This solution does not work for python3 and args (11, 1). You get
    TypeError: unorderable types: int() > NoneType()

    for the line
    if tmp_result > result or result is None:

    The comparisons should be interchanged (first test if result is None). I.e. the if statement is worthless in python2 and raises an error in python3.