Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

number = 5 what will be the output of this program? greater_than_zero =…

Question

number = 5
what will be the output of this program?
greater_than_zero = number > 0
if greater_than_zero:
print(number)

Explanation:

Step1: Evaluate comparison

$$5 > 0$$ is True.

Step2: Execute if block

Since greater_than_zero is True, print(number) runs.

Answer:

5