We know that sets in Python contain only unique elements. We can use this property of sets to check if a list has duplicate elements or not.
確定! 回上一頁