I have two lists
users
[[[u'1-tpbvixq4-j1mjkfcl'], [u'1-oufnhv4b-j1tbyxvt']], 2, None]
constrained_users
[[[u'1-oufnhv4b-j1tbyxvt']], 1, None]
I'm trying to remove constrained_users
from users
, but I'm not being able to do it.
This is my code, trying to match them so far:
if any(users[0][0] in u for u in constrained_users[0]):
print "true"
else:
print "false"
But I'm always getting false.
How can I remove the constrained_users
from users
?