Share your repls and programming experiences

← Back to all posts
6.3.1
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
OrianDagan
ariely122