WeCodeAcademy
❮ str.replace()str.startswith() ❯

str.find()

Index of the first match, or -1.

Group: String

Syntax

s.find(text)

Example

Examplepython
Open in editor »

← All of Python Reference