Answer to Question #263490 in Python for estrella

Question #263490


lat = [40.59, 40.52, 40.621, 40.519, 40.56, 41.265, 40.61, 40.806, 41.259, 41.265, 41.264, 41.264, 41.259, 41.262, 41.263]
lon = [69.532, 69.419, 69.354, 69.263, 69.478, 70.805, 69.706, 70.331, 70.815, 70.823, 70.815, 70.81, 70.824, 70.811, 70.811]

The lat list indicates how far north and south Gracie the seal has traveled, and the long list represents how far east and west she has traveled. The larger the latitude value, the further north the seal was located, and for this area of the world, the larger the longitude value, the further west the seal is located.

Write a program to calculate the farthest in each direction that Gracie was located throughout her travels. Add four print statements to the lines of code above that output the following, where the number signs are replaced with the correct values from the correct list:

Farthest north = #
Farthest west = #
Farthest south = #
Farthest east = #








1
Expert's answer
2021-11-09T23:39:17-0500
lat = [40.59, 40.52, 40.621, 40.519, 40.56, 41.265, 40.61, 40.806,
       41.259, 41.265, 41.264, 41.264, 41.259, 41.262, 41.263]
long = [69.532, 69.419, 69.354, 69.263, 69.478, 70.805, 69.706, 70.331,
        70.815, 70.823, 70.815, 70.81, 70.824, 70.811, 70.811]
print(f'Farthest north = {max(lat)}')
print(f'Farthest west  = {max(long)}')
print(f'Farthest south = {min(lat)}')
print(f'Farthest east = {min(long)}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS