API Reference
Classes
Return a str with the given suffix string removed if present.
If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.
previous
OperatorsEnum.removeprefix
next
OperatorsEnum.replace