i wrote a code for binary search and kept getting this error "TypeError: unsupported operand type(s) for //: 'list' and 'int'" : def binary_search(arr,val):
	if len(arr)==0 or len(arr)==1 and arr[0]!=val:
		return false

	mid=arr[len(arr)//2]


	if val==mid:
		return true

	
	if val<mid:
			return binary_search(len(arr//2,val))
	if val>mid:
		return binary_search(len(arr//2+1,val))

arr=[1,2,3,4,5,6]

print(binary_search(arr,3))
