Python: Introducing PEP 8

PEP 8

Python Enhancement Proposals (PEPs) dictate the rules for coding in Python. (Several other languages could use something like this.) Use this link:

http://introtopython.org/lists_tuples.html#What-is-a-PEP?

… but scroll up to the beginning of the section “Coding Style: PEP 8” (the link in the page TOC doesn’t work properly).

We’ll do a quick skim in class.

Hints

The second thing to note at the bottom of the page is the Hints section. These are “hidden” at the bottom so you won’t get hints to solve exercises unless you scroll down on purpose. Don’t be ashamed to look for these; always find solutions the fastest way you can, using all the resources you know.

Exercise:

Read PEP 8.