Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
difference of two set in python
telika ramu
Programming language:
Python
2021-08-02 19:34:33
0
Q:
difference of two set in python
Stormblessed
Code:
Python
2021-08-04 00:15:41
x = {1, 2, 3, 4, 5, 6} y = {1, 2, 3, 4} z = x.difference(y) # 5, 6
1
Tags
python
set
two
Related
excanging value of two variable in python
python multiply 2 variables
how to add 2 variables in python
set intersection python
union in set python
intersection of lists in python
intersection of two lists python
python list INTERSECTION
difference in set python
python intersection of two lists
python check if two sets intersect
same elements of two sets in python
adding multiple elements to a set python
python set intersection
python set methods
intersection between two sets python
join two set in python
sum of set in python
New to Communities?
Join the community