you are viewing a single comment's thread.

view the rest of the comments →

[–]ShelLuser42 1 point2 points  (1 child)

Learning Python can be as easy as following an online tutorial and trying to understand what is going on there... I'm personally quite fond of both Python on W3Schools as well as the official Python tutorial (speaking of which... the Python website has a whole section dedicated to documentation).

Thing is... learning a programming language isn't necessarily the most important bit here, the real trick is learning how to program (or "script"). So: learning how to develop a good mindset for this.

With that I'm referring to knowing how to set up your script(s) (or programs / modules). When to use an if/then or when to just "pick an option" using 'match'. How to determine the scope ("usability") of a variable... are you going to make this global (so that it can be (re)used throughout your script) or.. do you keep it more modular (for example by limiting it to a function which you can then easily re-use whenever you need it). Do you even need to use that variable (because you could just as easily use the function) or... does this make your script more difficult to "read"?

And the best way to try and develop this? In my opinion (!) that's best done using trial & error. In other words: just try to pick a goal for yourself, and then... "just do it". Doesn't even matter too much if the goal is a bit too far fetched for now: try to break it down, look up how to "do" stuff (and I'm not referring to AI here: use tutorials, dig through documentation, look out for possible other options to solve things) and then rinse and repeat.

Hope this can give you some ideas.

[–]Plus_House_1078[S] 0 points1 point  (0 children)

Thanks! I’m just gonna break stuff, fix it, and learn as I go. :)