Hi all,

I am playing around with the codes, and I am wondering why the two sets of codes don’t yield the same result:

```
#Correct code
def reversed_list(lst1, lst2):
for index in range(len(lst1)):
if lst1[index] != lst2[len(lst2) - 1 - index]:
return False
return True
#Uncomment the lines below when your function is done
print(reversed_list([1, 2, 3], [3, 2, 1]))
print(reversed_list([1, 5, 3], [3, 2, 1]))
```

result is correct as output is

True

False

```
#Incorrect code
def reversed_list(lst1, lst2):
for index in range(len(lst1)):
if lst1[index] == lst2[len(lst2) - 1 - index]:
return True
return False
#Uncomment the lines below when your function is done
print(reversed_list([1, 2, 3], [3, 2, 1]))
print(reversed_list([1, 5, 3], [3, 2, 1]))
```

This result is incorrect as the output is

True

True

I am wondering how does [1, 5, 3], [3, 2, 1] pass through the if and somehow satisfy the condition