Transfer practice · Display whether level 3 meets requirement 5 or the visitor has a pass. Use true for the pass, then repeat with false. Expect true, then false.
Use a familiar idea in a different task. Read the changed requirement before running.
Display whether level 3 meets requirement 5 or the visitor has a pass. Use true for the pass, then repeat with false. Expect true, then false.
true false
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
print(2 >= 5 or true)The level route is false, but the pass route is true, so entry is allowed.
New syntax: or
For these boolean values, false or true gives true. false or false gives false. Inspect both routes rather than assuming the pass is always present.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
This is a private experiment copy. It does not replace your answer or complete the activity.
Your output will appear here.
Replace this code with the starter? Download your draft to keep a copy.
Your output will appear here.
Sign in with RoCreators to save private progress across devices. Community verification is separate.