circuitpython/tests/basics/set_unop.py

13 lines
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')