2.8 Code Practice: Question 2 Answer?
Answers
Answer:
yep
Explanation:
lat = input("Enter lats: ")
lon = input("Enter lons: ")
lat_list = [float(s) for s in lat.split(',')]
lon_list = [float(s) for s in lon.split(',')]
a=max(lat_list)
b=max(lon_list)
c=min(lat_list)
d=min(lon_list)
print("Farthest north =" + str(a))
print("Farthest west =" + str(b))
print("Farthest south =" + str(c))
print("Farthest east =" + str(d))
Answer:
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]
print("Farthest north =" + (str(lat)))
print("Farthest west =" + (str(lon)))
print("Farthest south =" + str(lat)))
print("Farthest east =" + str(lon)))
Explanation:
follow me on insta at @frozenswedishfish