micropython/tests/basics/string_startswith_upy.py

7 lines
132 B
Python

# MicroPython doesn't support tuple argument
try:
"foobar".startswith(("foo", "sth"))
except TypeError:
print("TypeError")