Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 16, 2020 13:17
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/3714bff7b170c7bb8a2cab17ca56656d to your computer and use it in GitHub Desktop.
Save codecademydev/3714bff7b170c7bb8a2cab17ca56656d to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def same_values(lst1, lst2):
lst = []
for l1 in range(len(lst1)):
if lst1[l1] == lst2[l1]:
lst.append(l1)
return lst
#Uncomment the line below when your function is done
print(same_values([5, 1, -10, 3, 3], [5, 10, -10, 3, 5]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment