Skip to content

RenukaRamesh/DISTANCE-BETWEEN-TWO-POINTS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISTANCE-BETWEEN-TWO-POINTS

AIM:

To write a python program to find the distance two 2 points

ALGORITHM:

Step 1:

Start thr program

Step 2:

Write the program appropriately

Step 3:

Substitute the values in the distance formula formula

Step 4:

Execute the program

Step 5:

Run the program

PROGRAM:

#Program to find the distance between two points.
#Developed by: RAMESH RENUKA
#RegisterNumber:23009428
import math
list1 = [4,2]
list2 = [10,6]
distance = math.sqrt(((list2[0]-list1[0])**2) + ((list2[1]-list1[1])**2))
print("{:.2f}".format(distance))

OUTPUT:

distance

RESULT:

Thus distance between two points successfully executed

About

DISTANCE BETWEEN TWO POINTS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published