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?
n is 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 10 < n < 20 and.
n is 14. Print yes when n is both more than 10 and less than 20. Print no otherwise.
Click Run to see the output here.