Python Math Articles - 30 seconds of code Skip to content

Home

Python Math Articles

The Python article 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 ·

    Convert between hex and RGB

    Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components and vice versa.

  • Python ·

    Prime factors of number

    Find the list of prime factors of a number, using a simple Python function.

  • Python ·

    Hamming distance

    Learn how to calculate the Hamming distance between two values.

  • Python ·

    Sum of powers

    Find the sum of the powers of all the numbers from start to end (both inclusive).

  • Python ·

    Binomial coefficient

    Calculate the number of ways to choose k items from n items without repetition and without order.

Start typing a keyphrase to see matching articles.