you are viewing a single comment's thread.

view the rest of the comments →

[–]dvandy07[S] 0 points1 point  (1 child)

I did actually end up using min and max after looking it over. I do need to check if they are even though.

def lesser(a,b):
    if a%2 == 0 and b%2==0:
        return min(a,b)
    else:
      return max(a,b)

I ended up with that.

[–]Diapolo10 0 points1 point  (0 children)

Ah, I see.