Skip to content

amaxwell01/python_style_guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

python_style_guide

A standars based style guide for Python

  1. Types
  2. Dictionary/Objects
  3. Arrays
  4. Strings
  5. Functions
  6. Properties
  7. Variables
  8. Conditional Expressions & Equality
  9. Blocks
  10. Comments
  11. Whitespace
  12. Leading Commas
  13. Type Casting & Coercion
  14. Naming Conventions
  15. Accessors
  16. Constructors
  17. Modules
  18. Testing
  19. Performance
  20. Resources

Create a new Dictionary / Object

bank = {
    'money': 'US Dollar',
    'amount': 200000
}

Append or update a method of a dictionary

bank['type'] = 'check'

Single line comment

# Comment goes here

Multi-line comment

""" ==========================================================================
    Load Additional Content
    * Controls all of the loading of additional content
    * Checks to see if the user is on a mobile device, if so then use the load
    * more button, else use infinite scroll
    ========================================================================== """

Functions

def hello():
    print 'Hello World'
    
    
hello()

About

A standars based style guide for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published