ID EN
Built-in Types

replace

Python 3.11

Return a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.

Syntax

PYTHON
str.replace(old, new[, count])