If you try to move a piano and are unable to move it, did you perform any work in the scientific sense of the word? yes or no?

I think Yes

You may have put out a lot of effort but no distance means no work.

Never Mind this.

That makes sense. Thanks!

Yes, according to the scientific definition of work, you would have performed work in attempting to move the piano. In physics, work is defined as the product of the force applied to an object and the displacement of the object in the direction of the force. Even if you were unable to move the piano, you would have exerted a force on it, and there would have been a displacement in the direction of the force (even if it was a very small displacement). Therefore, work would have been done.