## Python Snippets

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.

Clamps

`num`

within the inclusive range specified by the boundary values.Checks if the given number falls within the given range.

Pads a given number to the specified length.

Returns the length of a string in bytes.

Capitalizes the first letter of every word in a string.

Generates a string with the given string value repeated

`n`

number of times.Calculates the factorial of a number.

Calculates the number of ways to choose

`k`

items from`n`

items without repetition and without order.Converts an angle from degrees to radians.

Converts an angle from radians to degrees.

Returns the binary representation of the given number.

Returns the hexadecimal representation of the given number.