string_startswith_upy.py 132 Bytes
Newer Older
1 2 3 4 5 6
# MicroPython doesn't support tuple argument

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