Python

Python: how to safely create directories using the Path class

In this article we will see how to safely create directories using Python's Path class.

January 8, 2023
Python

Python: how to check if a port of a remote host is open

In this article we will see how to check if a port of a remote host is open or not with Python.

January 8, 2023
Python

Python: how to check if a number is palindrome

In this article we will see the simplest solution to check if a number is palindrome in Python.

January 8, 2023
Python

Python: the id() function and object equality: a word of caution

In Python the id() function should never be used to check the equality of two objects.

January 7, 2023
Python

Python: how to encode a string in MD5 format

In this article we will see how to encode a string in MD5 with Python.

January 7, 2023
Python

Python: how to use the urllib module to make HTTP requests

In this article we will discover the basics of HTTP requests in Python using the urllib core module.

January 7, 2023