CircuitPython

Source code browser

1
2
3
4
5
6
# MicroPython doesn't support tuple argument

try:
    "foobar".startswith(("foo", "sth"))
except TypeError:
    print("TypeError")