Case conversion Python functions
Learn how to capitalize, camelcase, snake case, and kebab case strings in Python.
The Python snippet collection contains helper functions for Python 3.6. It includes utilities for most common data types, such as primitivies, lists, dictionaries and date objects.
Learn how to capitalize, camelcase, snake case, and kebab case strings in Python.
Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components and vice versa.
Python's f-strings can do a lot more than you might expect. Learn a few useful tips and tricks in this quick guide.
Using str.lstrip()
to strip a prefix from a string might not be exactly what you're looking for. Here's what you should use instead.
Learn two ways to format a string in Python with this quick tip.
Convert an integer to its roman numeral representation.
Convert a string to a URL-friendly slug, using Python and regular expressions.
Find the byte size of a Python string, containing special characters or not.
Here are two quick and elegant ways to check if a string is empty in Python.
Learn of the two different ways to convert strings to lowercase in Python and understand when you should use each one with this quick guide.
Oftentimes you might need to trim whitespace from a string in Python. Learn of three different way to do this in this short guide.