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

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")
```