Query Method In Python Geeksforgeeks Example