Home CS303E


CS 303E: Python Style Guide

Programming is not a dry mechanical process, but a form of art. Well written code has an aesthetic appeal while poor form can make other programmers and instructors cringe. Programming assignments will be graded based on style and correctness. Good programming practices usually include many of the following principles:

General Programming Style

Specific Guidelines

Code Layout

Import Statements

        DO THIS:
            import os
            import sys
        NOT THIS:
            import sys, os


Comments

Naming Conventions