Most Used String Functions in Python
String Case Functions
`[Link]()` - Converts all characters to lowercase.
`[Link]()` - Converts all characters to uppercase.
`[Link]()` - Capitalizes the first character.
`[Link]()` - Capitalizes the first letter of each word.
`[Link]()` - Swaps case of all characters.
Search & Check
`[Link](sub)` - Returns lowest index of `sub`, or `-1` if not found.
`[Link](sub)` - Like `find()`, but searches from the end.
`[Link](sub)` - Like `find()`, but raises `ValueError` if not found.
`[Link](prefix)` - Returns `True` if string starts with `prefix`.
`[Link](suffix)` - Returns `True` if string ends with `suffix`.
`[Link](sub)` - Counts how many times `sub` appears.
Check Types
`[Link]()` - Checks if all characters are alphabetic.
`[Link]()` - Checks if all characters are digits.
`[Link]()` - Checks if all characters are alphanumeric.
`[Link]()` - Checks if all characters are whitespace.
`[Link]()` - Checks if all letters are lowercase.
`[Link]()` - Checks if all letters are uppercase.
Modify or Clean
`[Link]()` - Removes leading and trailing whitespace.
`[Link]()` - Removes leading whitespace.
`[Link]()` - Removes trailing whitespace.
`[Link](old, new)` - Replaces occurrences of `old` with `new`.
Most Used String Functions in Python
Split & Join
`[Link](sep)` - Splits the string into a list by `sep`.
`[Link](sep)` - Splits from the right.
`[Link]()` - Splits string at line breaks.
`'sep'.join(list)` - Joins elements of a list into a string with separator `sep`.
Formatting
`[Link]()` - Used for string formatting (e.g., `'Hello {}'.format(name)`)
`f'{}'` - f-strings (Python 3.6+), e.g., `f'Hello {name}'`.