Skip to content

Instantly share code, notes, and snippets.

@jakul
Created July 28, 2014 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakul/791b113c08f6c167ce1d to your computer and use it in GitHub Desktop.
Save jakul/791b113c08f6c167ce1d to your computer and use it in GitHub Desktop.
users_to_invite = [1,2,3]
blocked_users= [3,4,5]
blocked_available = users_to_invite.intersection(blocked_users)
if blocked_available != set():
user_to_invite -= blocked_available
for user in blocked_available:
# log messages
invite(users_to_invite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment