def bisect(l, val):
	'''
	lookins value in given list
	returns true, if value is in
	False otherwise
	'''
	low = 0
	high = len(l) - 1
	while low <= high:
		mid = (low + high) // 2

		if l[mid] == val:
			return True
		elif l[mid] < val:
			low = mid + 1
		elif l[mid] > val:
			high = mid - 1
	return False

l = [random.randint(1, 200) for x in range(1, 100)]

print(l)

print('Lets bisect! Lookong for 10', bisect(l, 10))# your code goes here