Assinment 1 binary search case 6 empty list gives error

TEST CASE #6 when list is empty
gives error

UnboundLocalError: local variable ‘mid’ referenced before assignment

Then just add a condition where you consider such case…

1 Like

Ok thank you Sebastian