Is it in range?
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Making decisions →
Is it in range?
Read a whole number n with int(input()) (for example 14). Print yes when n is both more than 10 and less than 20. Print no otherwise.
and needs both sides to be true. Write each side as a complete question: n > 10 and n < 20, not n > 10 and < 20. (Python also accepts the chained form 10 < n < 20.)
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Read a whole number n with int(input()) (for example 14). Print yes when n is both more than 10 and less than 20. Print no otherwise.
Click Run to see the output here.