Demo entry 6685061

312

   

Submitted by anonymous on Dec 18, 2017 at 13:19
Language: Python 3. Code size: 147 Bytes.

s1 = {1, 2, 3}
# s1 = frozenset([1, 2, 3])
s2 = {3, 4, 5}
# result = s1.union(s2)
# result = s1 | s2
result = s1.update(s2)
print(result, s1)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).