# -*- coding: utf-8 -*-
"""
Created on Wed Aug 25 22:24:27 2021

@author: M10817021
"""

a = [77,5,5,22,13,55,97,4,796,1,0,9]
b = [0,1,2,3,4,5,6,7,8,9]
#聯集
set(a) | set(b)
#交集
set(a) & set(b)
#差集
set(a) - set(b)