Computer Science, asked by anjali36714, 4 months ago

python program to to check if a number is positive negative or 0

Answers

Answered by valeriy69
1

def check_num(num):

if num > 0:

return "positive"

if num < 0:

return "negative"

return "0"

for num in [-69, 0, 69]:

print(check_num(num))

\small\mathsf\color{lightgreen}useful?\: \color{white}\mapsto\: \color{orange}brainliest

Similar questions