Sometimes, we want to get a list all primes below N with Python. In this…
Month: April 2022
Sometimes, we want to redirect stdout to a file in Python. In this article, we’ll…
Sometimes, we want to find the index of an item in a list with Python.…
Sometimes, we to decode HTML entities in a Python string. In this article, we’ll look…
Sometimes, we want to do a case-insensitive string comparison with Python. In this article, we’ll…
Sometimes, we want to remove accents (normalize) in a Python unicode string. In this article,…
Sometimes, we want to read streaming input from Python subprocess.communicate() method. In this article, we’ll…
Sometimes, we want to replace multiple substrings of a string in Python. In this article,…
Sometimes, we want to select items randomly but weighted by probability with Python. In this…
Sometimes, we want to parse data in JSON format with Python. In this article, we’ll…