Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
difference in set python
Peter Kampf
Programming language:
Python
2021-07-12 22:35:41
0
Q:
difference in set python
Alun Thomas
Code:
Python
2021-06-18 12:51:34
A.difference(B) A-B
3
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
Related
python set methods
set default python
difference \n \r python
python set &
difference of two set in python
sets in python
python difference in time
python set
same elements of two sets in python
how to create a set in python
python sets
python set intersection
set() python
default values python
union in set python
set in python
set intersection python
check an element in set python
New to Communities?
Join the community