def is_in(obj, l):
 for item in l:
  if (item is obj):
   return True
 return False

def is_in ( obj , l ) : for item in l : if ( item is obj ) : return True return False
checks whether an object is one of the item in the list .