Soru1

 avatar
unknown
python
3 years ago
301 B
3
Indexable
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']))
Editor is loading...