ID EN
Built-in Types

startswith

Python 3.11

Return True if string starts with the prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position.

Syntax

PYTHON
str.startswith(prefix[, start[, end]])