Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 3, 2020 22:44
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/5a4a320123d5d5e5da7897dfab7d5814 to your computer and use it in GitHub Desktop.
Save codecademydev/5a4a320123d5d5e5da7897dfab7d5814 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def reversed_list(lst1, lst2):
for index in range(len(lst1)):
if lst1[index] != lst2[len(lst2)-1-index]:
return False
else:
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]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment