How to get the object speed into the console?

Hello everyone.
How to get the object speed into the console? What code, if it exists? I searched and did not find it in the BGE help.

Thank you for attention.

Forward Velocity/backward
print(object.localLinearVelocity.x)

total
Velocity =
print( object.worldLinearVelocity.magnitude)

  • Thank you. Such a feeling that I knew it but forgot - I knew it :eek:!!! I need to make a reference - fast syntax.
    Probably my brains are tired.:spin:.