Write a python function to check if two lists contains same elements regardless of order
Topic: Write a python function to check if two lists contains same elements regardless of order
Solution
def have_same_contents(a, b): for v in set(a + b): if a.count(v) != b.count(v): return False return True
List all Python Programs