Guest User

Untitled

a guest
Jul 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def foo(list_a, list_b):
  2. ret = []
  3. for i in list_a:
  4. for j in list_b:
  5. if list_a[i] == list_b[j]:
  6. ret.append(list_a[i])
  7. break
  8. return ret
Add Comment
Please, Sign In to add comment