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 = }")