livepython.net

59. Python Program to Check If a Number Is Positive

Easyif

Overview

Run one line only when a condition is True.

Problem Statement

Read a whole number. If it is greater than 0, print Positive. Then, whatever the number, print Checked. For example, for 5:

Positive
Checked

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

5

Output

The output for that example:

Positive
Checked

The tests try 3 different inputs.

Learn this firstChapter 8 · Python if Statement: Make Decisions in Code
solution.py
# write your code here

EXPECTED OUTPUT

1Positive
2Checked

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.