Python 3 Find Difference Between Two Tuples in Command Line

main.py

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

Leave a Comment

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