-
-
Save codecademydev/3714bff7b170c7bb8a2cab17ca56656d to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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