Entropy Generating Function Method In Python Geeksforgeeks Tutorial