class str

An immutable sequences of chars. No unicode support.

str(literal)

Create a str object with a literal string.

__eq__(t: str) bool
__neq__(t: str) bool
__lt__(t: str) bool
__gt__(t: str) bool
__le__(t: str) bool
__ge__(t: str) bool
__add__(t: int) str

Return the concatenation of this and t

__mul__(n: int) str

Equivalent to adding this to itself n times

__getitem__(i: int) str

Return the i-th character

__getitem__(i: int, j: int) str

Return the string slice from i to j

__getitem__(i: int, j: int, k: int) str

Return the string slice from i to j with step k

index(x: str) int

Return the index of the first occurrence of x in this

index(x: str, i: int) int

Return the index of the first occurrence of x in this (at or after index i)

count(x: str) int

Return the total number of occurrences of x in this