circuitpython/tests/basics/builtin_ord.py

10 lines
132 B
Python
Raw Normal View History

# test builtin ord (whether or not we support unicode)
print(ord('a'))
try:
ord('')
except TypeError:
print("TypeError")