The ball always drops from the same spot. The temperature only changes its size: hotter is bigger. Drag the pegs to make the board sort the balls into the right slot.
temp = int(input("What is the temperature? "))if temp >= 80:print("wear shorts")elif temp > 32:print("wear a jacket")else:print("wear a parka")
This is the deterministic program: the same temperature always gives the same answer, and it never looks at anything else. The green slot on the board is this program's answer. The pegs have to reproduce it with nothing but the size of the ball.
Drag any peg to move it. Your layout is remembered in this browser until you reset it. The pegs are uniform to start: balls of every size spread out across the three slots, and it is up to the pegs to change that.