str.find
Returns the lowest matching substring index within the search bounds.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Returns the lowest matching substring index within the search bounds.
Substitutes positional or named fields and applies each field’s format specification.
Resolves named replacement fields directly against a supplied mapping.
Returns the lowest index at which the substring occurs in the search interval.
Tests whether every character is alphabetic or numeric and at least one character exists.
Tests whether a nonempty string consists entirely of Unicode letters.
Tests whether every character is a Unicode digit and the string is nonempty.
Recognizes nonempty strings containing only Unicode whitespace.
Places the separator between successive strings from an iterable.
Returns a lowercase Unicode copy of a string.
Removes a run of characters from the left edge while each belongs to the supplied set.
Removes one exact prefix when it is present.
Removes one exact suffix when it is present.
Replaces occurrences of a literal substring, optionally stopping after a maximum number.
Finds the highest starting index of a matching substring.
Splits a string starting at the right, subject to the split limit.
Removes trailing characters as long as each belongs to the supplied character set.
Splits text into fields using whitespace or an explicit separator.
Splits text at recognized line boundaries, optionally retaining line endings.
Tests a literal prefix or tuple of prefixes at the beginning of the given interval.
Removes matching characters from both ends of a string.
Capitalizes word starts and lowercases the remaining cased characters.
Returns the Unicode uppercase mapping of the text.
Pads a string with ASCII zeroes on the left to reach the requested width.