Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 9, 2020 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/09de6cc1f72a755e1d5448a4a0568a58 to your computer and use it in GitHub Desktop.
Save codecademydev/09de6cc1f72a755e1d5448a4a0568a58 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def reversed_list(lst1,lst2):
lst2.sort()
if lst1 == lst2:
return True
else:
return False
#return True if lst1 == lst2 reversed
#return False if not
#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