livepython.net

64. Python Program to Check If a Number Is Between 1 and 100

Easyand, or, not

Overview

Check a range with and.

Problem Statement

Read a whole number. Print In range if it is from 1 to 100 (both included), otherwise Out of range. For example, for 50:

In range

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:

50

Output

The output for that example:

In range

The tests try 4 different inputs.

Learn this firstChapter 8 · Python Logical Operators: and, or, not
solution.py
# write your code here

EXPECTED OUTPUT

1In range

YOUR OUTPUT

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