Demoore19 Feb 22nd, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def same_index_values(dem, d):
  2.     etc=[]
  3.     for i in dem:
  4.         for a in d:
  5.             if i == a:
  6.                 etc.append(dem.index(i))
  7.     print(etc)
  8. same_index_values(["v", "b", "g", "h"], ["h", "b", "d", "b"])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand