kopia lustrzana https://github.com/micropython/micropython
13 wiersze
182 B
Python
13 wiersze
182 B
Python
|
# 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')
|