Question: We need to write a python 3.x script that compares the given coordinate X to the set of coordinate Y the list of Y- coordinates
We need to write a python 3.x script that compares the given coordinate X to the set of coordinate Y the list of Y- coordinates is below.
X = (-87.627806, 41.882022) = (degrees, minutes)
Y= ['(-87.551782, 41.739416)','(-87.644348, '41.926896)', '(-87.827907,41.790547 )','(-87.626759, )'
using a python conditional statement calculates the direction (Northeast, Northwest, Southwest, and Southeast) the four coordinate places are with respect to X- coordinate
example of the results a table as shown below
X is Southwest from '(-87.827907,41.790547 )'
x is Northwest from '(-87.551782, 41.739416)'
hope this is clear Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
