Python 3 Find Difference Between Two Tuples in Command Line

0Shares

main.py

a=(1,2,3,4)
b=(2,3,5,6)
print(tuple(set(a) ^ set(b)))
0Shares

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.