or accepts either true condition. This visitor can enter if their level is high enough or they hold a pass.
Run the three boolean examples. Output should be true, true, false in that order.
true 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.