Lab 1B

Lab 1B

Lab Description:

In this we followed the same instructions for the first lab, the only different thing that we , is that we have changed the formulas, and for sure the purpose of the code

Code:

Distance between two points

import math
x1= input('enter X1:')
x2= input('enter X2:')
y1= input('enter Y1:')
y2= input('enter Y2:')
x= (x2-x1)
y= (y2-y1)
distance = math.sqrt(x*x+y*y)
print ('The distance of the two points',(x1,x2), 'and' ,y1,y2, 'is:',distance

Screen Shoots: