DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+6 =
Submit