#100DaysOfCode in Python Transcripts
Chapter: Days 34-36: Refactoring / Pythonic code
Lecture: Refactoring 8: PEP8 and Zen of Python
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Number 8.
0:01
PEP 8 and the Zen of Python.
0:03
Any Python developer should become familiar
0:06
with PEP 8 and use it in their code.
0:09
So here's the Style Guide for Python
0:11
and you really should read this end-to-end
0:14
and make a habit of formatting your code
0:16
in the proper way, using variable names with underscore,
0:19
so all these conventions.
0:20
There's even a recent initiative, pep8.org,
0:24
which should make this even easier to digest.
0:26
And it's really nicely formatted
0:28
and gives you some more context.
0:31
And, of course, if you do import this from your Python REPL,
0:35
you get the Zen of Python.
0:36
And the more you write Python,
0:38
the more you see how this applies
0:40
to the language and it's design.
0:42
It's really where you start to better understand
0:45
and appreciate the language.