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.
Python's f-strings can do a lot more than you might expect. Learn a few useful tips and tricks in this quick guide.
Python, String · Jul 20, 2021
Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components.
Python, String · Sep 15, 2020
Checks if the a value is an empty sequence or collection.
Python, List · Jan 12, 2023
Converts an integer to its roman numeral representation. Accepts value between 1
and 3999
(both inclusive).
Python, Math · Nov 2, 2020
Learn two ways to format a string in Python with this quick tip.
Python, String · Jun 12, 2021
Converts the values of RGB components to a hexadecimal color code.
Python, String · Nov 2, 2020
Takes any number of iterable objects or objects with a length property and returns the longest one.
Python, List · Oct 17, 2021