- Home
- String
String
Articles
- Create a string in Python (single/double/triple quotes, str())
- How to use print() in Python
- Format strings and numbers with format() in Python
- How to use f-strings in Python
- Get the length of a string (number of characters) in Python
- Concatenate strings in Python (+ operator, join, etc.)
- Replace strings in Python (replace, translate, re.sub, re.subn)
- Split a string in Python (delimiter, line break, regex, and more)
- Search for a string in Python (Check if a substring is included/Get a substring position)
- String comparison in Python (exact/partial match, etc.)
- Extract a substring from a string in Python (position, regex)
- Remove a substring from a string in Python
- Count characters or substrings in a string in Python
- Handle line breaks (newlines) in strings in Python
- Regular expressions with the re module in Python
- How to use regex match objects in Python
- Convert binary, octal, decimal, and hexadecimal in Python
- Convert a string to a number (int, float) in Python
- Check if a string is numeric, alphabetic, alphanumeric, or ASCII
- Pad strings and numbers with zeros in Python (Zero-padding)
- Right-justify, center, left-justify strings and numbers in Python
- Uppercase and lowercase strings in Python (conversion and checking)
- Write a long string on multiple lines in Python
- Wrap and truncate a string with textwrap in Python
- Raw strings in Python
- Convert between Unicode code point and character (chr, ord)
- Extract and replace elements that meet the conditions of a list of strings in Python
- Convert a list of strings and a list of numbers to each other in Python
- Get the filename, directory, extension from a path string in Python
- Sort a list, string, tuple in Python (sort, sorted)
- Reverse a list, string, tuple in Python (reverse, reversed)
- Sort a list of numeric strings in Python
- How to slice a list, string, tuple in Python