Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python compare sets

a = {1,2,3}
b = {3,4,5}
c = a.intersection(b)
print(c) # {3}
Source by betterprogramming.pub #
 
PREVIOUS NEXT
Tagged: #python #compare #sets
ADD COMMENT
Topic
Name
3+8 =