def f3(x, y):
    for i in (list(range(x, y)) if x < y else list(range(y, x))):
        pass

def f4(x, y):
    if x > y:
        x, y = y, x
for i in range(x, y):
    pass

def f5(x, y):
    pass
Best way to find max and min of two values