Exercise: Functions

Create a function that:

  1. has two parameters, x and y
  2. if x > y: return x-y
  3. else : return y-x

call the function with x=4, y=3

rewrite the function using Lambda expression. Hint:

    lambda x, y: do something if x>y else do something else