Files
2022-05-06 00:49:26 +03:00

13 lines
484 B
Python
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
num = int (input ("Number: "))
#Операции с переменными в if: >, <, ==, !=, >=, <=
if num > 0:
print('Положительное')
#Elif это следующий if, который выполняется если предыдущей неверный.
elif num == 0:
print('Равно 0')
#Else выплняется если ни if, ни один из elseif не являются верными
else:
print('Отрицательное')
input()