Python Coding Guidelines
Python Coding Guidelines

      Unless told otherwise, you should always adhere to the
      following guidelines when creating your Python programs:

1) Use the CodeHS.com sandbox code editor to create your Python programs. 2) Use the default editor fonts and colors (including the white background). 3) Put your name (first and last), course name, color/period, date, and program name (in that order) on the first five lines of every submitted file. 4) When using functions, put all of your functions together, before the 'main' area of your program and the function calls. 5) Keep the 'main' area of your program sparse, putting most of your code into separate functions. 6) Put a blank line between every function and between different sections of code. 7) Properly and consistently indent your lines of code. 8) Make sure each function has a single, clear, identifiable task. 9) Use descriptive, meaningful names for functions and variables. 10) Give every function a brief comment explaining its purpose. 11) Give every non-trivial/obvious variable a comment explaining its purpose. 12) Begin function and variable names with lowercase letters; additional words in the names should begin with capitals. 13) Unless told otherwise, you do not need to error trap user input. 14) Make sure your programs are easily readable and understandable. 15) Remember that every program that you submit must be designed and written entirely by you. You must never copy or receive code in any format from any other sources. 16) After completing each assignment, electronically submit your code file(s) via Google Classroom. In addition, unless told otherwise, turn in a printout of the file(s) using a fixed-space font and making sure no lines of code automatically wrap to new lines. If your printout consists of multiple pages, staple the pages together.