what do you call the thing that connects to the spinning part of the motor?

The thing that sticks out and you can attach things to it

Yes, that is what my brother called it, when I was trying to teach him about how motors work.