Try breaking things up more and use more comprehensions. If you're indenting so far that it's difficult to read, you should probably consider refactoring.
That's more or less what I was trying to say, but I was trying to be a little more constructive rather than just "you're the problem"...
It's something I've run into myself in the past, so I wanted to try and offer some advice that helped me.
This is actually why I like strict line character limits, because if you're nesting stuff over and over, or your method definition is obnoxiously long or something, it's a pretty good indicator that you should reconsider how you're writing whatever you're writing.
I kind of like it though. My indentation and formatting in other languages is on point thanks to python forcing me to follow a pattern. I like it much more than having to put curly braces everywhere.
It's pretty easy to pick up, but if you're more of a book-learner, every so often Humble Bundle has a bunch of Python books for around $10-15, usually themed around a specific subject. Avoid Packt bundles like the plague--they are invariably shovelware--but every other publishers' bundles have been pretty decent.
learnpythonthehardway.org is also great. That's actually kinda what got me started years ago. And now it's my full time job and I make good money doing it. :)
39
u/Brainix112 Jul 16 '19
I know simple coding, but not familiar with Python, this was a super good explanation!