python compare lists unordered code example Example: python compare lists unordered def compare(s, t): return sorted(s) == sorted(t)