def compare_elements(a, b):
 if (a is None):
  a = []
 if (b is None):
  b = []
 return (set(a) == set(b))

def compare_elements ( a , b ) : if ( a is None ) : a = [ ] if ( b is None ) : b = [ ] return ( set ( a ) == set ( b ) )
compare elements if a and b have same elements this method doesnt consider ordering .