← The arcade

Unscramble · difficulty 2 of 3

Unscramble: binary search 🧩

Reorder the lines to build a working binary search that prints the index of 23.

Write it in the browser and press run. Real Python, checked against the expected output, no account needed.

Skills: functions

Open the arcade