For Code Challenge, Reverse Loops
I have created code that comes to the right outputs, however i am not able to get past the exercise. I’m guessing there is something I have done wrong, but after trying a few different ways to do this I can’t seem to figure it out. Does anyone have any insight?
#Write your function here def reversed_list(lst1, lst2): for num in range(len(lst1)-1, -1, -1): for nums in lst1: if num == nums: return True else: 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]))