micropython/tests/basics/set_unop.py

13 wiersze
182 B
Python
Czysty Zwykły widok Historia

# 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')