There is some incorrect information in this thread.
I program arduino and PLC's for a living. There are ladder logic programming suites for the arduino, they are for the most part junk.
Arduino now has their own industrial PLC's based on their hardware, their have a ladder logic IDE available for the pro platform
Arduino Cloud
www.arduino.cc
There are many things you can do with an arduino pro or not that a PLC cannot leveraging the IoT capabilities of the arduino ecosystem.
Depending on your project you may end up in the price realm of the automationdirect.com Click price range just in relays and other parts to interface different voltages and high currents with an arduino.
The raspberry Pi is a largely different platform in that it is an SBC (single board computer) it is capable of running a vast array of different linux based operating systems but does have some IO onboard that can be leveraged through python.
If I was starting again from scratch, I would buy an arduino kit from amazon. Such as this:
Elegoo Arduino Kit
But I also would buy a Click PLC from Automation direct:
https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/click_plcs_(stackable_micro_brick)/plc_units/c0-00dr-d
That Click has relay outputs on the processor and should get you rolling on some automation within minutes of opening the box.
There are a handful of us on the boards with C, and Python experience that are all happy to help. I have a vast array of ladder experience from all the major players Rockwell/AB, GE/Emerson, Schneider, Delta, Omron etc..