YouTube. Straight up. When I learned to code my yt search history was a million different versions of “how to <do thing> in python” for months. I also really liked the “Computational methods for physics” textbook (you can find the pdf for free on cambridge website), but that book is written for an audience that knows near graduate math but starts praying if their advisor asks them to write a program
I used to maintain an excel database along with an ecosystem of internal engineering tools in excel/vba. I worked in a vault, and one day I asked my isso if I could get python on some of the machines in my lab. A full 1.5 years later they got back to me that some security office was finally ready to consider my request and sent me a bunch of paperwork to fill out to justify why I needed python. And separate copies for each individual library I wanted to come with it. Needless to say I went on continuing to maintain my excel database and toolkit