def strange(x, y):
    if x > y:
        return x - y
    else: 
        return y - x

print reduce(strange, range(10))
      
