DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python operator to use for set union
x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} z = x|y
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#Python
#operator
#set
#union
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit