micropython/tests/float/list_index.py

9 wiersze
89 B
Python

x = [1, 2]
print(x[1])
try:
print(x[1.0])
except TypeError:
print("TypeError")