Final answer:
A lambda function in Python that computes the difference of two inputs x and y can be defined as 'subtract = lambda x, y: x - y'. You can use this by calling subtract(x, y) with the values for x and y.
Step-by-step explanation:
To write a lambda function that takes two inputs, x and y, and returns the difference x-y, you can define the function in Python as follows:
subtract = lambda x, y: x - y
Here, subtract is the name of the lambda function. To use this function, you would call it with two arguments, like subtract(10, 5), which would return 5, as that is the result of 10 minus 5.