You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
216 B
23 lines
216 B
s = {1, 2, 3, 4}
|
|
print(s.add(5))
|
|
print(sorted(s))
|
|
|
|
s = set()
|
|
s.add(0)
|
|
s.add(False)
|
|
print(s)
|
|
|
|
s = set()
|
|
s.add(False)
|
|
s.add(0)
|
|
print(s)
|
|
|
|
s = set()
|
|
s.add(1)
|
|
s.add(True)
|
|
print(s)
|
|
|
|
s = set()
|
|
s.add(True)
|
|
s.add(1)
|
|
print(s)
|
|
|