Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python set comparison

set1 = {1, 3, 5}
set2 = {1, 3, 5}
set3 = {1, 2, 3}

print(set1 == set2)  # True
print(set1 == set3)  # False
 
PREVIOUS NEXT
Tagged: #python #set #comparison
ADD COMMENT
Topic
Name
7+7 =