How does a little algebra collapse three nested loops into one — turning a billion brute-force checks into a thousand?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Three nested for loops, each running over range(3) (the values 0, 1, 2), sweep through every combination of three numbers. Write those loops and add 1 to count once for each combination they visit.