I’ve been using a free resource called Tinkercad https://www.tinkercad.com/circuits to learn about electronics, circuits, Arduino and coding.
It’s a simulator so you don’t have to buy anything, nor will you have to spend time fault finding for loose components or duff sensors. You select, drag and drop components and wires and there is an IDE for entering the code and then you can run the code and circuit.
They have a lot of tutorials that you can follow and I’ve found it useful for getting to grips with some of the basics.
Whilst the range of components is not comprehensive, it’s possible to prototype some of your own ideas before buying components and assembling them.