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"
# Тело в той же строке: допустимо, но не рекомендуется
if latitude < 0: sign = "-"
else: sign = "+"
print(f"{latitude = }")
print(f"{location = }")
print(f"{sign = }")