v3 · Activity 2 of 4 · comparison · boundaries · 8 min Runs here
A comparison asks a question and produces true or false. > means greater than. >= means greater than or equal to, so it includes the boundary. == asks whether values are equal; = stores a value.
Display whether 4, 5, and 6 each meet a requirement of at least 5. The three boolean outputs must be false, true, then true. Use the example comparisons to include equality.
false true true
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
print(10 >= 10)The two numbers are equal, so the inclusive comparison displays true.
New syntax: >, >=, ==, <=
== checks equality; = assigns a value. Here >= checks whether a number is greater than or equal to the requirement.
This checks three observed outcomes. Later, function tests try changing inputs and boundary values automatically.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
4 5
5 5
6 5This 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.