Konwertuj negatywne na pozytywne w Pythonie
>>> n = -42
>>> -n # if you know n is negative
42
>>> abs(n) # for any n
42
>>> abs(-5.05)
5.05
NA RACE
>>> n = -42
>>> -n # if you know n is negative
42
>>> abs(n) # for any n
42
>>> abs(-5.05)
5.05
num = float(input("Enter a number: "))
if num > 0:
print("Positive number")
elif num == 0:
print("Zero")
else:
print("Negative number")