Statement getting executed after loop and printing.

For `linearsearch` code I have tried few possibilities but I'm not sure why the last print statement gets executed?

```
def linearsearch(list, n):
    i = 0
    for i in range(len(list)):
        if(list[i] == n):
            return True
list = [4, 6, 8]
n = 4
if search(list, n):
    print("Found")
print("Not found")

```

Expected output:

> 
> Found
> 
> 
> 

Actual result:

> 
> Found
> 
> 
> Not found
> 
> 
>