Advertisement
ancestor_tunji

#same_index_values

Feb 22nd, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #same_index_values
  2. lists = ["a", "b", "c", "d"]
  3. figures = ["a", "x", "c", "d"]
  4. def same_index_values(lists,figures):
  5.     for list in lists :
  6.         for figure in figures :
  7.             if lists.index(list) == figures.index(figure):
  8.                 return [lists.index(list)]
  9.    
  10.              
  11. same_index_values(lists,figures)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement