Odpowiedź:
def setSign(x):
if x < 0:
return -1
else:
return 1
if __name__ == "__main__":
print(setSign(-5))
print(setSign(5))
Wyjaśnienie:
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
def setSign(x):
if x < 0:
return -1
else:
return 1
if __name__ == "__main__":
print(setSign(-5))
print(setSign(5))
Wyjaśnienie:
def setSign(x):
if x < 0:
return -1
else:
return 1