Soru1

mail@pastecode.io avatar
unknown
python
2 years ago
301 B
1
Indexable
Never
def identicalLists(list1: list, list2: list):
    if(len(list1) != len(list2)):
        return False
    for element in list1:
        if(element in list2):
            list2.remove(element)
        else:
            return False
    return True
print(identicalLists([1,2,3,'ABU',6], [3,1,2,5,'ABU']))