Question
You will create a List of Location Names and a List of Coordinates Each Coordinate will be have an associated tuple of floating point values
You will create a List of Location Names and a List of Coordinates Each Coordinate will be have an associated tuple of floating point values x,y,z Example myPoints=[Point1,Point2], myCoords=[(1.1,1.0,1.5),(2.0,2.1,2.2)] The Point Names and Coordinates Lists will be positional associated Note the Point Names are descriptive Strings Your List should be composed of 6 or more Points
IN python You will use List Operations like iteration and comprehension to iterate over the Lists to create a new Distance List that will be composed of the String Name of the Distance and the Distance between the referenced Points Example; [DistanceP1p2, 3.123] The Distance is computed as (x**2+y**2+z**)**.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started