edhesive 2.8 code practice question 1 & 2 answers
Answers
Answered by
7
Answer:
question 1)
a = int(input("Enter a number:" ))
b = int(input("Enter a number: "))
c = int(input("Enter a number: "))
print(max(a, b, c))
question 2)
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(',')]
n = max(lon_list)
s = min(lon_list)
e = max(lat_list)
w = min(lat_list)
print("Farthest north = " +str(n) + "\nFarthest west = " +str(w))
print("Farthest south = " +str(s) + "\nFarthest east = " +str(e))
Explanation:
Similar questions
History,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago