blob: 1f96deed509afd18ec1f173c90d82f26270dfb62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# test set unary operations
print(bool(set()))
print(bool(set('abc')))
print(len(set()))
print(len(set('abc')))
try:
hash(set('abc'))
except TypeError:
print('TypeError')
|