#### prasanna.ratnam

##### Member

Dear Srikanth Sir,

can you please check, i m using below code to find the distance but the below error is showing

def euclidean (x1,y1,x2,y2):

euclidean = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)

return euclidean

error-

File "<ipython-input-44-b9137b35e123>", line 2

euclidean = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)

^

IndentationError: expected an indented block

I think your code should be this

**def euclidean (x1,y1,x2,y2):**

<TAB>euclidean = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)

<TAB>return euclidean

<TAB>euclidean = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)

<TAB>return euclidean

so your code will look like this

**def euclidean (x1,y1,x2,y2):******

**euclidean = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)**

return euclideanreturn euclidean