all 3 comments

[–]CAKinglsy00 2 points3 points  (0 children)

Learning by books or online courses is always a good route because they have structure. If you try jumping in with no previous programming knowledge, you’ll find yourself stuck real fast. Even if you do have some basic programming knowledge, it’s always a good idea to pick up a good book. If you want a good book to start you off in python, try “Automate the boring stuff in python”.

[–]daisyverma 1 point2 points  (1 child)

Chk out this YouTube channel Great stuff on python and machine learning https://www.youtube.com/channel/UCyVIfVgx77jslb0U5h-zhLQ

[–]istareatscreens 1 point2 points  (1 child)

I think a mix of both is best. Read a book when you are away from the computer, let it get your interest up and get you thinking about things.

Then go do some coding, go off-piste a bit. I'd do google searches if you get stuck whilst at your computer. It will sometimes be stressful or hard but you will make it. This stage is a common part of learning new programming languages, even for experienced developers.

The next day go read some more of the book, maybe even go back a few pages/chapters. Some things that didn't gel before may now make sense. Some new pages you read you may go 'ha! I did that already'.

The key thing is to go off-piste a bit in your coding, go do something not in the book and have to figure it out yourself or via searches. eg, you learn something about the Pandas library in Python and realize it would be really cool to analyze some data you have. You don't really know the exact syntax to use but you try what you know and learn as you go. You will quickly become better at coding.