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
Read a whole number age with int(input()) (for example 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.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Read a whole number age with int(input()) (for example 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.