TEST CASE #6 when list is empty
gives error
UnboundLocalError: local variable ‘mid’ referenced before assignment
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…
Ok thank you Sebastian