Skip to content
← Back to Community
6.3.1
Profile icon
ariely122

def are_lists_equal(list1, list2):
if(sorted(list1) == sorted(list2)):
return True
else:
return False
list1 = [0.6, 1, 2, 3]
list2 = [3, 2, 0.6, 1]
list3 = [9, 0, 5, 10.5]
check = are_lists_equal(list1, list3)
print(check)

Voters
Profile icon
OrianDagan
Profile icon
ariely122