im just getting into python for my discrete structures and algorithms class > and for some reason, im getting an error with my syntax and I don't understand why can you assist this is the error:
line 10
i = i + 1
IndentationError: unindent does not match any outer indentation level also for some reason my code isn't printing
#linear search algorithm
 def search(list1, n):
    i = 0
    while i < len(list1):
         if list1[i] == n:
            print("found now")
            return True
        i = i + 1
    return False
list1 = [1,5,9,3,4,6]
n = 6
if search(list1, n):
    print("found")
else:
    print("not found")
 
     
    

