mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-20 04:25:34 -04:00
8 lines
162 B
Python
8 lines
162 B
Python
s = {1, 2, 3, 4}
|
|
print(sorted(s))
|
|
print(sorted(s.intersection({1, 3})))
|
|
print(sorted(s.intersection([3, 4])))
|
|
|
|
print(s.intersection_update([1]))
|
|
print(sorted(s))
|