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, String
Capitalizes the first letter of every word in a string.
Python, Math
Calculates the factorial of a number.
Python, String
Generates a string with the given string value repeated n
number of times.
Python, Math
Calculates the number of ways to choose k
items from n
items without repetition and without order.
Python, Math
Converts an angle from degrees to radians.
Python, Math
Converts an angle from radians to degrees.
Python, Math
Returns the binary representation of the given number.
Python, Math
Returns the hexadecimal representation of the given number.