3D Distance X72496


Statement
 

pdf   zip   main.py

html

Write a function distance3d that returns the Euclidean distance between two given points in 3D space. Each point is specified by its 3 float coordinates: distance3d(x0, y0, z0, x1, y1, z1) returns the Euclidean distance between point (x0, y0, z0) and point (x1, y1, z1).

Sample session
>>> distance3d(0, 0, 0, 3, 4, 4.89898)
7.000000360028562
Information
Author
Jordi Delgado and José Luis Balcázar
Language
English
Official solutions
Python
User solutions
Python