Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def same_index_values(list1, list2):
- index_list= [ ]
- for number in list1 and list2:
- if list1.index(number)==list2.index(number):
- index_list.append(list1.index(number))
- print(index_list)
- same_index_values(["a", "b", "c", "d"], ["c", "b", "a", "d"]) #Example (It must contain two arguments and the arguments must be lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement