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 Replit.com code editor to create all of your programs. Make sure you create a new Repl for each coding assignment (classwork). 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) Make sure each function has a single, clear, identifiable task. 8) Give every function a brief comment explaining its purpose. 9) Give every non-trivial/obvious variable a comment explaining its purpose. 10) Use descriptive, meaningful names for functions and variables. 11) Begin function and variable names with lowercase letters; additional words in the names should begin with capitals. 12) Unless told otherwise, you do not need to error trap user input. 13) Make sure your programs are easily readable and understandable. 14) After completing each assignment, unless told otherwise, turn in a printout of the file(s), making sure no lines of code automatically wrap to new lines. If your printout consists of multiple pages, staple the pages together. 15) When finished with each assignment, electronically submit a copy your source (.py) files via Google Classroom. Do this by submitting the link to your Repl for the current assignment.