0

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?

Antimony
  • 2,230
  • 3
  • 28
  • 38
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174

0 Answers0