worldPosition doesn't match object's location

I’m using the python code worldPosition to try and figure the distance between two objects. The problem is that worldPosition gives a different number than the one I find in the Transform Toolbar on the right. According to it, my object is located at 0 X and 0 Y, but according to world position, it’s not. Am I using worldPosition wrong, or is worldPosition not the right tool for the job?

The location toolbar of the object:

The python for finding and printing the worldPosition values:

The system console’s message: