Source: https://maths974.e-monsite.com/medias/files/python.pdf