Skip to content

Instantly share code, notes, and snippets.

@codecademydev

codecademydev/script.py Secret

Created Oct 16, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.