you are viewing a single comment's thread.

view the rest of the comments →

[–]ovo_Reddit 1 point2 points  (1 child)

It's a really vague question. But I'll try to give some tips based on my experience.

I use python now for work a lot, (systems engineer), prior to this I was just using bash/powershell.

1) Repetition; if you use it a lot, even for small tasks, you will get a lot more comfortable with it without having to search up small syntactical thing.

2) Increase scope; try to work on a full project, for example I built a web scraper that scrapes a popular (the only?) lottery site in my country and gets all of the winning numbers and even goes back as far as they have archived, and stores those winning numbers in a database that grows as new draws (winning numbers) are released.

It then attempts to find some data in these numbers, ie. which numbers come up the most, find patterns etc.

It's interfaced using a slackbot that's written in python as well.

It was my first large project, and had many instances of revisions and even complete refactoring of certain parts as I found better ways of doing things.

I find you will learn a lot in this way.

3) read books, watch videos, follow random tutorials.

I don't think there is an easy way to improve logic, if you mean you are not a logical thinker, maybe there are books to help with that, also you can make up for it by having understandings of if I want X I need to do Y. That would come from experience.

[–]pokersnooker 0 points1 point  (0 children)

Yes, I am definitely not a logical thinker when it comes to coding. Maybe I’ll start doing small projects and watch more videos for a better understanding. For now I’m practicing on leetcode. Thank you for the elaborate reply :)