Skip to content

Instantly share code, notes, and snippets.

@codecademydev codecademydev/script.py Secret
Created Sep 3, 2019

Embed
What would you like to do?
Codecademy export
#Write your function here
def reversed_list(lst1, lst2):
lst1.sort()
lst2.sort()
if lst1 == lst2:
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]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.