Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def same_index_value(list1,list2):
- k = []
- for i in range(0,len(list1)):
- for j in range(0,len(list2)):
- if list1[i] == list2[j]:
- f = list1[i]
- k = k.append(f)
- print(k)
- same_index_value(['a','b','c','d'],['c','b','a','d'])
Advertisement
Add Comment
Please, Sign In to add comment