<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

Traceback (most recent call last):

File “/Volumes/ELEMENTS/binary search.py”, line 26, in

if which_half_of_the_list(lists, 5) == True:

File “/Volumes/ELEMENTS/binary search.py”, line 14, in which_half_of_the_list

list_number += int(list_of_numbers(sequence))

TypeError: ‘list’ object is not callable

<What do you expect to happen instead?>

i expected my code to print found

lists = [1,2,3,4,5,6,7,8,9]

def which_half_of_the_list(list_of_numbers, chosen_number):

sequence = 0

a = 0

more_or_less_than_list =

more_than = False

less_than = False

for count in list_of_numbers:

a += 1

sequence += 1

sequence = sequence // 2

list_number = 0

list_number += int(list_of_numbers(sequence))

if list_number == chosen_number:

return True

elif list_of_numbers(sequence) > chosen_number:

for count in range(list_of_numbers(sequence), a):

more_or_less_than_list += count

return more_or_less_than_list

elif list_of_numbers(sequence) < chosen_number:

for count in range(0, list_of_numbers(sequence)):

more_or_less_than_list += count

return more_or_less_than_list

if which_half_of_the_list(lists, 5) == True:

print(“found”)

`<do not remove the three backticks above>`