Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Get the Difference Between Sets in Python

firstSet = {2, 3, 4, 5}

secondSet = {1, 3, 5, 7}

print(firstSet - secondSet)
# {2, 4}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #How #Get #Difference #Between #Sets #Python
ADD COMMENT
Topic
Name
4+4 =