Free entry
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 →
Free entry
age is 70. Entry is free when the age is under 12 or 65 and over. Print free or pay.
or needs only one side to be true. and needs both. Read your condition out loud — the English word you would use is usually the right one.
age is 70. Entry is free when the age is under 12 or 65 and over. Print free or pay.
Click Run to see the output here.