I have the following code that calculate the distance between two points x(0,1) and y(0,1) but I don't get the answer

Python:

```
def distance(x, y):
dist = math.sqrt((x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 )
return dist
print(distance((0,0),(1,1)))
```

thank you in advance