1 Comment

user_number = input("Enter a number:")

number=int(user_number)

if number > 0:

print("The number is positive")

elif number < 0:

print("The number is negative")

else:

print("The number is zero")

Expand full comment