DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to Get the Union of Sets in Python
firstSet = {2, 3, 4, 5} secondSet = {1, 3, 5, 7} print(firstSet | secondSet) # {1, 2, 3, 4, 5, 7}
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#How
#Get
#Union
#Sets
#Python
ADD COMMENT
Topic
COMMENT
Name
8+1 =
Submit