WeCodeAcademy
❮ str.find()str.endswith() ❯

str.startswith()

Whether a string starts with text.

Group: String

Syntax

s.startswith(text)

Example

Examplepython
Open in editor »

← All of Python Reference