Assignment 1 - Binary search problem

can someone please what is the problem in my code here? it’s not working and always returning 0.

What are your inputs?

please someone let me know what is the problem my code is not working
its always showing this

You’ve posted the notebook twice, I suppose you wanted to paste something else second time.