Answers for "difference of two set in python"

1

difference of two set in python

x = {1, 2, 3, 4, 5, 6}
y = {1, 2, 3, 4}

z = x.difference(y)
# 5, 6
Posted by: Guest on May-17-2020

Code answers related to "difference of two set in python"

Python Answers by Framework

Browse Popular Code Answers by Language