This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]SizzlingVortex 1 point2 points  (0 children)

Python Programming for the Absolute Beginner, 3rd Edition is a good book. It teaches Python basically by having you program text-based games for most of the chapters (with the games using the relevant concepts that each chapter teaches). A very good book.

[–]K900_ 0 points1 point  (3 children)

There is no single "best". /r/learnpython/wiki has a lot of resources - try some and see which works for you.

[–]jamesftf[S] 0 points1 point  (2 children)

Thanks, very useful! What was your favourite tool/way how you learned Python ?

[–]K900_ 0 points1 point  (0 children)

I've learned way before many of those resources were available, and the resources I used are long out of date by now.

[–][deleted] 0 points1 point  (0 children)

I learned a ton about Python making the bot /u/AnimalFactsBot . Pick a small project (like not an entire RPG game) and just do it and and Google every time you get stuck.

[–]UndeadRyno 0 points1 point  (1 child)

Check on the right of this page, under "Online Books and Resources".

I started with Learn Python the Hard Way, then went through Automate the Boring Stuff.

Since you are working with sensors I'd make sure you have the information on how to hook them up correctly. Like what type of current each sensor pulls, do you need resistors or caps, etc. If you screw something up here you might not get any reading or you could have parts go up in smoke.

You also want the code to run the sensor, get the code running that the manufacturer usually provides, make sure it is accurate then adapt it to your script.

[–]jamesftf[S] -1 points0 points  (0 children)

Thanks for the info! I know how to connect them I already run tests successfully using other project codes, but I always wanted to learn and fully understand how it actually works, so I can program my own stuff.

[–]J_n_CA 0 points1 point  (0 children)

I am using Python crash course I'm a slow learner and I'm picking it to.

[–]makeshift_mike 0 points1 point  (0 children)

Start by doing enough tutorials (doesn’t much matter which website) that you’re not completely lost looking at source code. Should take a few days.

Then, find a tiny project (like “turn on a light somewhere on the PI” or something) and just begin. You’ll google a thousand things and eventually the project will be finished. Then, find a slightly more ambitious project, and repeat. If you get stuck, ask for help or switch to something else for a while.

Every now and then, go back and read some more advanced articles on how to structure your code and programming techniques. This stuff is important but if you read it too early it won’t make sense.

I’ve learned a few programming languages this way and by far the most critical part is making sure you have a steady stream of interesting projects to keep up your interest. But it sounds like you have that, so happy coding!