How can I use python to control hardware such as the raspberry pi?
Define hardware control? Please improve the question. You can use python to control the pins to turn a engine on or off. Or turn a servo motor.
Maybe control the Lego Mindstorms EV3(I know I said raspberry pi in my first post)? That specific enough?
Can I do it without raspberry pi?
Always lovely that your questions contain so many details. Well, if you have the hardware required, should be possible