This is a description of x and y
def x_and_y(x, y):
z = 0
for i in range(x):
z += 1
return y - z
| Function Call | Return Value | |||
|---|---|---|---|---|
| x_and_y(5, 7) | → | |||
| x_and_y(2, 5) | → | |||
| x_and_y(1, 8) | → | |||
| x_and_y(15, 1) | → | |||
| x_and_y(150, 0) | → | |||
| x_and_y(10, 10) | → | |||
Experiment with this code on Gitpod.io