PEP 8 -- Should I learn it now

https://app.dataquest.io/m/293/data-cleaning-basics/8/extracting-values-from-strings

I was going through the above lesson and separating and indenting separate attributes/methods to a new line was quickly gone over. I get it that it’s to make the code easier to read, but is this from the PEP 8 style guide?

Also, this guide is huge in terms of guidelines etc, how should I go about learning it. I kind of feel like I should learn it now early in my coding journey instead of creating bad habits and trying to break them later. What’s the best way to learn it?

Thanks!

Use Linting tools like autopep8 from nbextensions in jupyter notebook. Reading the PEP outside the context of looking at your code is easy to forget.
Or do everything here once https://realpython.com/python-pep8/

1 Like