from random import randint
def get_latitude():
return randint(-90, 90)
latitude = get_latitude()
# Проверка сверху вниз: выполняется первая истинная ветвь
if latitude == 0:
location = "Equator"
elif latitude < 0:
location = "Southern Hemisphere"
else:
location = "Northern Hemisphere"
print(f"{latitude = }")
print(f"{location = }")