• Build Real and Functional Applications: Learn by Doing and Observing
    1. Learn by Doing: Paired-coding – We Will Code Together
    2. Learn by Observing: Watch Us Code
  • We Won’t Feed You the Answers. Our Goal is Guided Learning. We’ll teach you to Learn on Your Own.
  • You Will Be Challenged and Will Feel Uncomfortable at Times
  • Do Mental Pushups to Re-wire Your Brain (Free Time? Do Math and Subtraction In Your Head… and long division)
  • Use Online Resources: Google for Education, The Hardway, Stackoverflow, etc
  • Code and Study Everyday to Build Familiarity and Intuition
  • Note parallels and differences from languages you already know!

The reading assignments and, more importantly, the problem sets from Google are key to developing coding intuition! The purpose of the in-class sessions are to teach you how to structure and build apps quickly!

def function_name (parameter_1, parameter_2 = 4):
    variable_1 = 5
    result = (parameter_1 + parameter_2) * variable_1
    return result

argument_1 = 2
argument_2 = 3

print ( function_name(argument_1, argument_2) )

Python Has formatting and style conventions. Please abide. Also, it will be advantageous to familiarize yourself with differences between Python 3+ and 2.7.

Here some Python “101s”:

  1. Modules are python source code saved as a *.py file
  2. Packages are groups of modules in a directory containing an __init__.py file
  3. Class names use the CapWords convention (first letter always caps). This is also known as CamelCase and PascalCase. (cf., PEP-0008)
  4. Modules and packages should have short, all-lowercase names. Underscores may be used in the module name if it improves readability (e.g., lowercase_underscore) . NOTE: Underscores are discouraged for package names
  5. Function and variable names should be descriptive and lowercase, with words separated by underscores as necessary to improve readability (e.g., descriptive_and_lowercase_with_underscores)
  6. Constants use ALL_CAPS
  7. Unlike PHP, spacing between parentheses is not a convention in Python
  8. Indentation has syntactical meaning within Python. Follow the rules (PEP-0008: Code Layout)
  9. Three types of commenting conventions: Docstring, Block, and Inline. Review Lilian Lemmer’s Memories app for documentation best practices. This post on guidelines may also be useful.