Sometimes, we want to resize an image using PIL and maintain its aspect ratio with…
Sometimes, we want to iterate over files in a given directory with Python. In this…
Sometimes, we want to concatenate text files in Python. In this article, we’ll look at…
Sometimes, we want to log in to a website using Python’s Requests module. In this…
Sometimes, we want to process escape sequences in a string in Python. In this article,…
Sometimes, we want to verify host key with Python pysftp. In this article, we’ll look…
Sometimes, we want to catch multiple exceptions in one line with Python. In this article,…
Sometimes, we want to write a list to a file with Python. In this article,…
Sometimes, we want to fix “datetime.datetime not JSON serializable” with Python. In this article, we’ll…
Sometimes, we want to convert a Unicode string that contains extra symbols to a string…