← Innovation PlaygroundMISSION 20 / 100 · Coding Studio

If / else decisions

Choose a message based on a quiz score.

1. Explore the controls

Change the inputs and observe the model's response.

2. Observe the results

MessageTry again

How the model works

if score >= passMark: print("Pass")
else: print("Try again")
YOUR MISSION

3. Reach the target

Adjust the controls to obtain the following output. Multiple valid solutions may exist.

MessagePass
Need a hint?

Choose a score at or above the pass mark.

Explore, then check your answer.

Simplified educational model. No real hardware is controlled. Code examples are illustrative and not executed as arbitrary programs.