xxxxxxxxxx
# if it in array, does same thing with less cost!
# this is just a recursive way
def includes_it(arr: list, it) -> bool:
if len(arr) == 0:
return False
if arr[0] == it:
return True
else:
new_arr = arr[1:]
return includes_it(new_arr, it)
if __name__ == '__main__':
print(includes_it([5, 3, 2, 4, 6], 10))
print(includes_it([" ", " ", " ", " ", " "], " "))