8000 ok · machphy/python_programming_@74e36cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 74e36cf

Browse files
committed
ok
1 parent b22afc3 commit 74e36cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sets/set_union.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
A={55,14,0,12,0,12,0,4,52,1,1,56,31,5}
2+
B={3,4,6,4,84,6,58,5,64,3,6,46,58,6,5}
3+
A.union(B)
4+
A.intersection(B)
5+
A.difference(B)
6+
A.symmetric_difference(B)
7+
8+
print(A.union(B) , A.intersection(B) ,A.difference(B) ,A.symmetric_difference(B))

0 commit comments

Comments
 (0)
0