union=set1.union(set2) intersection=set1.intersection(set2) difference=set1.difference(set2)

  1. union {1, 2, 3, 4, 5, 6, 7}
  2. intersection {1, 2, 3}
  3. difference {4, 5}



要查看或添加评论,请登录

MITHUN KUMAR的更多文章

  • Futuristic Thought

    Futuristic Thought

    Morning ThoughtAs the sun rises and the world begins to awaken, I find myself lost in thought. The quiet of the early…

  • Every end is a new beginning

    Every end is a new beginning

    If you can dream it you can do it

社区洞察

其他会员也浏览了