A standars based style guide for Python
- Types
- Dictionary/Objects
- Arrays
- Strings
- Functions
- Properties
- Variables
- Conditional Expressions & Equality
- Blocks
- Comments
- Whitespace
- Leading Commas
- Type Casting & Coercion
- Naming Conventions
- Accessors
- Constructors
- Modules
- Testing
- Performance
- Resources
Create a new Dictionary / Object
bank = {
'money': 'US Dollar',
'amount': 200000
}
Append or update a method of a dictionary
bank['type'] = 'check'
# Comment goes here
""" ==========================================================================
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
========================================================================== """
def hello():
print 'Hello World'
hello()